Skip to content

Commit

Permalink
fix: explicitly define type 0 transaction (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 authored Oct 3, 2024
1 parent 4cb0bcd commit 63f3380
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/utils/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ export async function sendNativeTransaction(
): Promise<TransferResponse> {
const signer = await makeReadySigner(privateKey, jsonRpcProvider)
const gasPrice = externalGasPrice ?? (await signer.getGasPrice())
const transaction = await signer.sendTransaction({ to, value, gasPrice })
const transaction = await signer.sendTransaction({
to,
value: BN.from(value),
gasPrice,
gasLimit: BN.from(21000),
type: 0,
})
const receipt = await transaction.wait(1)

return { transaction, receipt }
Expand Down

0 comments on commit 63f3380

Please sign in to comment.