diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-24 08:15:23 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-24 08:15:23 +0800 |
commit | 3cd9f40e63d82c983ce10963c62432c87808f993 (patch) | |
tree | 471b1aa39da8ee36f27e6d21978a8cd1c52cf048 /packages/web3-wrapper/src | |
parent | a766d78706cb45336263388360584390fe0e62f2 (diff) | |
parent | 4a72dc6c6f0825232d61e470f5b7975aec2e5c0e (diff) | |
download | dexon-sol-tools-3cd9f40e63d82c983ce10963c62432c87808f993.tar dexon-sol-tools-3cd9f40e63d82c983ce10963c62432c87808f993.tar.gz dexon-sol-tools-3cd9f40e63d82c983ce10963c62432c87808f993.tar.bz2 dexon-sol-tools-3cd9f40e63d82c983ce10963c62432c87808f993.tar.lz dexon-sol-tools-3cd9f40e63d82c983ce10963c62432c87808f993.tar.xz dexon-sol-tools-3cd9f40e63d82c983ce10963c62432c87808f993.tar.zst dexon-sol-tools-3cd9f40e63d82c983ce10963c62432c87808f993.zip |
Merge branch 'development' into feature/instant/failure-state
Diffstat (limited to 'packages/web3-wrapper/src')
-rw-r--r-- | packages/web3-wrapper/src/web3_wrapper.ts | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packages/web3-wrapper/src/web3_wrapper.ts b/packages/web3-wrapper/src/web3_wrapper.ts index 3ba153680..56877fef3 100644 --- a/packages/web3-wrapper/src/web3_wrapper.ts +++ b/packages/web3-wrapper/src/web3_wrapper.ts @@ -23,7 +23,13 @@ import { import * as _ from 'lodash'; import { marshaller } from './marshaller'; -import { BlockWithoutTransactionDataRPC, BlockWithTransactionDataRPC, NodeType, Web3WrapperErrors } from './types'; +import { + BlockWithoutTransactionDataRPC, + BlockWithTransactionDataRPC, + NodeType, + TransactionRPC, + Web3WrapperErrors, +} from './types'; import { utils } from './utils'; const BASE_TEN = 10; @@ -228,10 +234,11 @@ export class Web3Wrapper { */ public async getTransactionByHashAsync(txHash: string): Promise<Transaction> { assert.isHexString('txHash', txHash); - const transaction = await this.sendRawPayloadAsync<Transaction>({ + const transactionRpc = await this.sendRawPayloadAsync<TransactionRPC>({ method: 'eth_getTransactionByHash', params: [txHash], }); + const transaction = marshaller.unmarshalTransaction(transactionRpc); return transaction; } /** |