Skip to content

Commit e67d357

Browse files
committed
fix
1 parent 8a3045f commit e67d357

File tree

1 file changed

+5
-4
lines changed
  • packages/eth-providers/src/utils

1 file changed

+5
-4
lines changed

packages/eth-providers/src/utils/utils.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { AnyFunction } from '@polkadot/types/types';
22
import { BigNumber, BigNumberish } from '@ethersproject/bignumber';
3-
import { BlockTagish, CallInfo, Eip1898BlockTag } from '../base-provider';
4-
import { CacheInspect } from './BlockCache';
53
import { Extrinsic } from '@polkadot/types/interfaces';
64
import { FrameSystemEventRecord } from '@polkadot/types/lookup';
7-
import { _Metadata } from './gqlTypes';
85
import { hexToBn, hexToU8a, isHex, isU8a, u8aToBn } from '@polkadot/util';
96
import BN from 'bn.js';
107

8+
import { BlockTagish, CallReturnInfo, Eip1898BlockTag } from '../base-provider';
9+
import { CacheInspect } from './BlockCache';
10+
import { _Metadata } from './gqlTypes';
11+
1112
export interface EthCallTimingResult {
1213
gasPriceTime: number;
1314
estimateGasTime: number;
@@ -300,7 +301,7 @@ export const decodeRevertMsg = (hexMsg: string) => {
300301
};
301302

302303
// https://github.com/AcalaNetwork/Acala/blob/067b65bc19ff525bdccae020ad2bd4bdf41f4300/modules/evm/rpc/src/lib.rs#L87
303-
export const checkEvmExecutionError = (data: CallInfo['ok']): void => {
304+
export const checkEvmExecutionError = (data: CallReturnInfo): void => {
304305
if (!data) return;
305306

306307
const { exit_reason: exitReason, value: returnData } = data;

0 commit comments

Comments
 (0)