on master help sign in
txs: consider transaction broadcasted instantly
78dc17efang
src/lib/useEthereumTransaction.js+1−1
@@ -145,6 +145,7 @@ export default function useEthereumTransaction(
145 try {
145 try {
146 setConfirmationProgress(0.0);
146 setConfirmationProgress(0.0);
147 setError(undefined);
147 setError(undefined);
148+ setState(STATE.BROADCASTED);
148
149
149 const rawTxs = signedTransactions.map(stx => hexify(stx.serialize()));
150 const rawTxs = signedTransactions.map(stx => hexify(stx.serialize()));
150
151
@@ -182,7 +183,6 @@ export default function useEthereumTransaction(
182 );
183 );
183
184
184 setTxHashes(txHashes);
185 setTxHashes(txHashes);
185− setState(STATE.BROADCASTED);
186
186
187 await timeout(PROGRESS_ANIMATION_DELAY_MS);
187 await timeout(PROGRESS_ANIMATION_DELAY_MS);
188
188