@@ -3,7 +3,6 @@ import { Row, Col, H1, H3, P, Warning, Anchor } from '../components/Base'
3import { Button } from '../components/Base'
3import { Button } from '../components/Base'
5import { BRIDGE_ERROR, renderTxnError } from '../lib/error'
5import { BRIDGE_ERROR, renderTxnError } from '../lib/error'
7import { NETWORK_NAMES } from '../lib/network'
6import { NETWORK_NAMES } from '../lib/network'
9const Success = (props) => {
8const Success = (props) => {
@@ -76,7 +75,7 @@ const Failure = (props) =>
78const SentTransaction = (props) => {
77const SentTransaction = (props) => {
79− const { web3, txnCursor, networkType, popRoute } = props
78+ const { web3, txnHashCursor, networkType, popRoute } = props
80 const { setPointCursor, pointCursor } = props
79 const { setPointCursor, pointCursor } = props
82 const w3 = web3.matchWith({
81 const w3 = web3.matchWith({
@@ -84,16 +83,16 @@ const SentTransaction = (props) => {
84 Just: res => res.value
83 Just: res => res.value
87− const result = txnCursor.matchWith({
86+ const result = txnHashCursor.matchWith({
88 Nothing: _ => { throw BRIDGE_ERROR.MISSING_TXN },
87 Nothing: _ => { throw BRIDGE_ERROR.MISSING_TXN },
89 Just: res => res.value
88 Just: res => res.value
92 const body = result.matchWith({
91 const body = result.matchWith({
93 Error: message => <Failure web3={ w3 } message={ message.value } />,
92 Error: message => <Failure web3={ w3 } message={ message.value } />,
94− Ok: txn =>
93+ Ok: hash =>
96− hash={ txn.value.transactionHash }
95+ hash={ hash.value }
97 networkType={ networkType }
96 networkType={ networkType }