Skip to content

Commit 94508fe

Browse files
committed
update
1 parent 905da1f commit 94508fe

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/core/process/transaction.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe("Test processTransaction", () => {
177177
// verify raw transaction was logged
178178
expect(mockArgs.baseResult.spanAttributes["details.rawTx"]).toBeDefined();
179179
expect(mockArgs.baseResult.spanAttributes["txNoneNodeError"]).toBe(true);
180-
expect(withBigintSerializer).toHaveBeenCalledTimes(7);
180+
expect(withBigintSerializer).toHaveBeenCalledTimes(8);
181181
});
182182

183183
it("should correctly identify node errors in transaction failures", async () => {

src/core/process/transaction.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,8 @@ export async function processTransaction({
4747
let txhash: `0x${string}`, txUrl: string;
4848
let txSendTime = 0;
4949
try {
50-
txhash = await signer.asWriteSigner().sendTx({
51-
...rawtx,
52-
type: "legacy",
53-
});
50+
rawtx.type = "legacy";
51+
txhash = await signer.asWriteSigner().sendTx(rawtx as any);
5452
txUrl = signer.state.chainConfig.blockExplorers?.default.url + "/tx/" + txhash;
5553
txSendTime = Date.now();
5654
// eslint-disable-next-line no-console

0 commit comments

Comments
 (0)