File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,11 @@ export const normalizeTxBody = (body: Cardano.HydratedTxBody | Cardano.TxBody) =
90
90
return dehydratedTx ;
91
91
} ;
92
92
93
+ // We do not afford to wait for 3 confirmations on real network as it is a too long wait.
94
+ // In preview it happened more than 4 minutes required to have 3 confirmations,
95
+ // making the test to fail for timeout waiting for the third confirmation.
96
+ const defaultWaitConfirmation = env . NETWORK_SPEED === 'fast' ? 3 : 1 ;
97
+
93
98
export const txConfirmed = (
94
99
{
95
100
tip$,
@@ -99,7 +104,7 @@ export const txConfirmed = (
99
104
}
100
105
} : ObservableWallet ,
101
106
{ id } : Pick < Cardano . Tx , 'id' > ,
102
- numConfirmations = 3
107
+ numConfirmations = defaultWaitConfirmation
103
108
) =>
104
109
firstValueFromTimed (
105
110
merge (
You can’t perform that action at this time.
0 commit comments