Skip to content

Commit

Permalink
Fixed decimal strings as value-type properties for JsonRpcSigner (#2948
Browse files Browse the repository at this point in the history
…).
  • Loading branch information
ricmoo committed Apr 29, 2022
1 parent 66d6aaf commit 9bf17fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/providers/src.ts/json-rpc-provider.ts
Expand Up @@ -671,7 +671,7 @@ export class JsonRpcProvider extends BaseProvider {
// JSON-RPC now requires numeric values to be "quantity" values
["chainId", "gasLimit", "gasPrice", "type", "maxFeePerGas", "maxPriorityFeePerGas", "nonce", "value"].forEach(function(key) {
if ((<any>transaction)[key] == null) { return; }
const value = hexValue((<any>transaction)[key]);
const value = hexValue(BigNumber.from((<any>transaction)[key]));
if (key === "gasLimit") { key = "gas"; }
result[key] = value;
});
Expand Down

0 comments on commit 9bf17fa

Please sign in to comment.