mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-28 17:50:28 +08:00
Use tx receipt from wait call
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
@@ -216,10 +216,9 @@ async function commit(
|
||||
|
||||
state.set({ connection: State.Committing });
|
||||
|
||||
await tx.wait(1);
|
||||
const receipt = await tx.wait(1);
|
||||
session.state.updateBalance(fee.mul(-1));
|
||||
|
||||
const receipt = await config.provider.getTransactionReceipt(tx.hash);
|
||||
// Save commitment in local storage in case the user refreshes or closes
|
||||
// the page.
|
||||
window.localStorage.setItem('commitment', JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user