diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-26 04:32:37 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-26 04:32:37 +0800 |
commit | c5e8bb17635d8710f0db62a8887f990cb6ad482f (patch) | |
tree | 7850c2f522aca88b327a8cdcbe07ce80f1109fc3 /packages/instant/src/containers | |
parent | acefeff5f08f123c7c5d372088f2af016e31c599 (diff) | |
download | dexon-sol-tools-c5e8bb17635d8710f0db62a8887f990cb6ad482f.tar dexon-sol-tools-c5e8bb17635d8710f0db62a8887f990cb6ad482f.tar.gz dexon-sol-tools-c5e8bb17635d8710f0db62a8887f990cb6ad482f.tar.bz2 dexon-sol-tools-c5e8bb17635d8710f0db62a8887f990cb6ad482f.tar.lz dexon-sol-tools-c5e8bb17635d8710f0db62a8887f990cb6ad482f.tar.xz dexon-sol-tools-c5e8bb17635d8710f0db62a8887f990cb6ad482f.tar.zst dexon-sol-tools-c5e8bb17635d8710f0db62a8887f990cb6ad482f.zip |
txnHash -> txHash
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r-- | packages/instant/src/containers/selected_asset_buy_button.ts | 12 | ||||
-rw-r--r-- | packages/instant/src/containers/selected_asset_view_transaction_button.tsx | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/packages/instant/src/containers/selected_asset_buy_button.ts b/packages/instant/src/containers/selected_asset_buy_button.ts index 17cc1a770..8d60715be 100644 --- a/packages/instant/src/containers/selected_asset_buy_button.ts +++ b/packages/instant/src/containers/selected_asset_buy_button.ts @@ -20,8 +20,8 @@ interface ConnectedState { interface ConnectedDispatch { onAwaitingSignature: (buyQuote: BuyQuote) => void; onSignatureDenied: (buyQuote: BuyQuote, error: Error) => void; - onBuyProcessing: (buyQuote: BuyQuote, txnHash: string) => void; - onBuySuccess: (buyQuote: BuyQuote, txnHash: string) => void; + onBuyProcessing: (buyQuote: BuyQuote, txHash: string) => void; + onBuySuccess: (buyQuote: BuyQuote, txHash: string) => void; onBuyFailure: (buyQuote: BuyQuote) => void; } @@ -35,12 +35,12 @@ const mapDispatchToProps = (dispatch: Dispatch<Action>, ownProps: SelectedAssetB const newOrderState: OrderState = { processState: OrderProcessState.AWAITING_SIGNATURE }; dispatch(actions.updateBuyOrderState(newOrderState)); }, - onBuyProcessing: (buyQuote: BuyQuote, txnHash: string) => { - const newOrderState: OrderState = { processState: OrderProcessState.PROCESSING, txnHash }; + onBuyProcessing: (buyQuote: BuyQuote, txHash: string) => { + const newOrderState: OrderState = { processState: OrderProcessState.PROCESSING, txHash }; dispatch(actions.updateBuyOrderState(newOrderState)); }, - onBuySuccess: (buyQuote: BuyQuote, txnHash: string) => - dispatch(actions.updateBuyOrderState({ processState: OrderProcessState.SUCCESS, txnHash })), + onBuySuccess: (buyQuote: BuyQuote, txHash: string) => + dispatch(actions.updateBuyOrderState({ processState: OrderProcessState.SUCCESS, txHash })), onBuyFailure: buyQuote => dispatch(actions.updateBuyOrderState({ processState: OrderProcessState.FAILURE })), onSignatureDenied: (buyQuote, error) => { dispatch(actions.resetAmount()); diff --git a/packages/instant/src/containers/selected_asset_view_transaction_button.tsx b/packages/instant/src/containers/selected_asset_view_transaction_button.tsx index 8239319a4..064b877be 100644 --- a/packages/instant/src/containers/selected_asset_view_transaction_button.tsx +++ b/packages/instant/src/containers/selected_asset_view_transaction_button.tsx @@ -22,7 +22,7 @@ const mapStateToProps = (state: State, _ownProps: {}): ConnectedState => ({ state.buyOrderState.processState === OrderProcessState.SUCCESS) ) { const etherscanUrl = etherscanUtil.getEtherScanTxnAddressIfExists( - state.buyOrderState.txnHash, + state.buyOrderState.txHash, state.assetBuyer.networkId, ); if (etherscanUrl) { |