Skip to content

Commit

Permalink
Fixed missing property during transaction copy (ethers-io#3793).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent b0fcea3 commit 83c06ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/providers/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export function copyRequest(req: TransactionRequest): PreparedTransactionRequest

if (req.data) { result.data = hexlify(req.data); }

const bigIntKeys = "chainId,gasLimit,gasPrice,maxFeePerGas, maxPriorityFeePerGas,value".split(/,/);
const bigIntKeys = "chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);
for (const key of bigIntKeys) {
if (!(key in req) || (<any>req)[key] == null) { continue; }
result[key] = getBigInt((<any>req)[key], `request.${ key }`);
Expand Down

0 comments on commit 83c06ff

Please sign in to comment.