fix: explicitly define type 0 transaction (#674)

This commit is contained in:
Cafe137
2024-10-03 06:27:17 -07:00
committed by GitHub
parent 4cb0bcd3b9
commit 63f338075b
+7 -1
View File
@@ -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 }