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 0820cc7 commit 7abaaa7
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 7abaaa7

Please sign in to comment.