Don't catch error

We let it fly to display an error message.
This commit is contained in:
Alexis Sellier
2021-07-15 15:01:48 +02:00
parent 0220f96947
commit 72b1f9d413
+1 -2
View File
@@ -148,8 +148,7 @@ async function commit(commitment: string, fee: BigNumber, minAge: number, config
signature.v,
signature.r,
signature.s,
{ gasLimit: 150000 })
.catch((e: Error) => console.error(e));
{ gasLimit: 150000 });
await tx.wait(1);
session.state.updateBalance(fee.mul(-1));