@@ -8,7 +8,6 @@ import { ROUTE_NAMES } from '../lib/routeNames';
8import { useHistory } from '../store/history';
8import { useHistory } from '../store/history';
9import { BRIDGE_ERROR, renderTxnError } from '../lib/error';
9import { BRIDGE_ERROR, renderTxnError } from '../lib/error';
10import { NETWORK_TYPES } from '../lib/network';
10import { NETWORK_TYPES } from '../lib/network';
11−import { useTxnConfirmations } from '../store/txnConfirmations';
12import { useNetwork } from '../store/network';
11import { useNetwork } from '../store/network';
13import { useTxnCursor } from '../store/txnCursor';
12import { useTxnCursor } from '../store/txnCursor';
14import View from 'components/View';
13import View from 'components/View';
@@ -39,7 +38,7 @@ class Success extends React.Component {
40 render() {
39 render() {
41 const { props, state } = this;
40 const { props, state } = this;
42− const { networkType, hash, txnConfirmations } = props;
41+ const { networkType, hash } = props;
43 const { pending } = state;
42 const { pending } = state;
45 const esvisible =
44 const esvisible =
@@ -67,9 +66,7 @@ class Success extends React.Component {
70− const confirmations = Maybe.fromNullable(txnConfirmations[hash]).getOrElse(
69+ const confirmations = 1;
74 const requiredConfirmations = 1;
71 const requiredConfirmations = 1;
@@ -115,7 +112,6 @@ const Failure = props => (
116function SentTransaction(props) {
113function SentTransaction(props) {
117 const history = useHistory();
114 const history = useHistory();
118− const { txnConfirmations } = useTxnConfirmations();
119 const { web3, networkType } = useNetwork();
115 const { web3, networkType } = useNetwork();
120 const { txnCursor } = useTxnCursor();
116 const { txnCursor } = useTxnCursor();
@@ -132,13 +128,7 @@ function SentTransaction(props) {
133 const body = result.matchWith({
129 const body = result.matchWith({
134 Error: message => <Failure web3={w3} message={message.value} />,
130 Error: message => <Failure web3={w3} message={message.value} />,
138− networkType={networkType}
131+ Ok: hash => <Success hash={hash.value} networkType={networkType} />,
139− txnConfirmations={txnConfirmations}
144 const ok = (
134 const ok = (