We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c3e4b6 commit 4b2c2b0Copy full SHA for 4b2c2b0
src/server/routes/backend-wallet/sign-transaction.ts
@@ -5,6 +5,7 @@ import { getAccount } from "../../../shared/utils/account";
5
import {
6
getChecksumAddress,
7
maybeBigInt,
8
+ maybeInt,
9
} from "../../../shared/utils/primitive-types";
10
import { thirdwebClient } from "../../../shared/utils/sdk";
11
import { createCustomError } from "../../middleware/error";
@@ -82,7 +83,7 @@ export async function signTransaction(fastify: FastifyInstance) {
82
83
...transaction,
84
data: transaction.data as Hex | undefined,
85
client: thirdwebClient,
- nonce: nonce ? Number.parseInt(nonce) : undefined,
86
+ nonce: maybeInt(nonce),
87
chain,
88
value: maybeBigInt(transaction.value),
89
gas: maybeBigInt(transaction.gasLimit),
0 commit comments