@@ -144,17 +144,14 @@ export default function useEthereumTransaction(
146 setSignedTransactions(txns);
146 setSignedTransactions(txns);
147− console.log(2, txns)
149 // Per return type of `signTransaction`, tx is either a Transaction or FakeSignedTx.
148 // Per return type of `signTransaction`, tx is either a Transaction or FakeSignedTx.
150 // We check the negation in this case, since TS cannot perform run-time check of type
149 // We check the negation in this case, since TS cannot perform run-time check of type
151 // FakeSignedTx, but it can check for an instance of the ethereumjs/tx class.
150 // FakeSignedTx, but it can check for an instance of the ethereumjs/tx class.
152 if (txns.some(tx => !(tx instanceof Transaction))) {
151 if (txns.some(tx => !(tx instanceof Transaction))) {
153 setState(STATE.FAKE_SIGNED);
152 setState(STATE.FAKE_SIGNED);
156 setState(STATE.SIGNED);
154 setState(STATE.SIGNED);
159 } catch (error) {
156 } catch (error) {
160 console.error('error signing txs', error);
157 console.error('error signing txs', error);
@@ -177,7 +174,6 @@ export default function useEthereumTransaction(
178 const broadcast = useCallback(async () => {
175 const broadcast = useCallback(async () => {
181 setConfirmationProgress(0.0);
177 setConfirmationProgress(0.0);
182 setError(undefined);
178 setError(undefined);
183 setState(STATE.BROADCASTED);
179 setState(STATE.BROADCASTED);