From 63f338075b919cb70d79665c3d86537f2ac1d2e9 Mon Sep 17 00:00:00 2001 From: Cafe137 <77121044+Cafe137@users.noreply.github.com> Date: Thu, 3 Oct 2024 06:27:17 -0700 Subject: [PATCH] fix: explicitly define type 0 transaction (#674) --- src/utils/rpc.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/utils/rpc.ts b/src/utils/rpc.ts index d69e55b6..0fe43101 100644 --- a/src/utils/rpc.ts +++ b/src/utils/rpc.ts @@ -66,7 +66,13 @@ export async function sendNativeTransaction( ): Promise { 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 }