We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1590550 commit a83d91fCopy full SHA for a83d91f
packages/e2e/src/util/util.ts
@@ -90,6 +90,11 @@ export const normalizeTxBody = (body: Cardano.HydratedTxBody | Cardano.TxBody) =
90
return dehydratedTx;
91
};
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
+
98
export const txConfirmed = (
99
{
100
tip$,
@@ -99,7 +104,7 @@ export const txConfirmed = (
104
}
105
}: ObservableWallet,
101
106
{ id }: Pick<Cardano.Tx, 'id'>,
102
- numConfirmations = 3
107
+ numConfirmations = defaultWaitConfirmation
103
108
) =>
109
firstValueFromTimed(
110
merge(
0 commit comments