diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-07-04 01:49:35 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-07-04 01:49:35 +0800 |
commit | d2ebf4a7772070e3ec255d0551de8c9f2822d4c3 (patch) | |
tree | 1b879ef84055e4e5b686770530a3aded330c096a /packages/ethereum-types/src/index.ts | |
parent | c5fcea1dbd5e64e72eb5cf360558de9f9b886a16 (diff) | |
download | dexon-sol-tools-d2ebf4a7772070e3ec255d0551de8c9f2822d4c3.tar dexon-sol-tools-d2ebf4a7772070e3ec255d0551de8c9f2822d4c3.tar.gz dexon-sol-tools-d2ebf4a7772070e3ec255d0551de8c9f2822d4c3.tar.bz2 dexon-sol-tools-d2ebf4a7772070e3ec255d0551de8c9f2822d4c3.tar.lz dexon-sol-tools-d2ebf4a7772070e3ec255d0551de8c9f2822d4c3.tar.xz dexon-sol-tools-d2ebf4a7772070e3ec255d0551de8c9f2822d4c3.tar.zst dexon-sol-tools-d2ebf4a7772070e3ec255d0551de8c9f2822d4c3.zip |
Add TransactionReceiptStatus type to ethereum-types
Diffstat (limited to 'packages/ethereum-types/src/index.ts')
-rw-r--r-- | packages/ethereum-types/src/index.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/ethereum-types/src/index.ts b/packages/ethereum-types/src/index.ts index 499c84327..f4d445e3b 100644 --- a/packages/ethereum-types/src/index.ts +++ b/packages/ethereum-types/src/index.ts @@ -215,6 +215,8 @@ export interface TxDataPayable extends TxData { value?: BigNumber; } +export type TransactionReceiptStatus = null | string | 0 | 1; + export interface TransactionReceipt { blockHash: string; blockNumber: number; @@ -222,7 +224,7 @@ export interface TransactionReceipt { transactionIndex: number; from: string; to: string; - status: null | string | 0 | 1; + status: TransactionReceiptStatus; cumulativeGasUsed: number; gasUsed: number; contractAddress: string | null; |