Skip to content

Commit d8b20f8

Browse files
committed
fix eth_call
1 parent 900dd40 commit d8b20f8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/eth-providers/src/base-provider.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -769,12 +769,10 @@ export abstract class BaseProvider extends AbstractProvider {
769769
ethReq.gasPrice ??= await this.getGasPrice();
770770
ethReq.gasLimit ??= BigNumber.from(999999920);
771771

772-
const substrateGas = this._getSubstrateGasParams(ethReq);
773-
774772
const callRequest: SubstrateEvmCallRequest = {
775773
...ethReq,
776774
value: ethReq.value?.toBigInt(),
777-
...substrateGas,
775+
gasLimit: ethReq.gasLimit?.toBigInt(),
778776
};
779777

780778
const res = await this._ethCall(callRequest, blockHash);

0 commit comments

Comments
 (0)