Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Use tx receipt from `wait` call
Alexis Sellier committed 4 years ago
commit 0b647238365ab461ccd63d61d622aa4d537919a4
parent b2949d99100631fac778ba573975d1a21689af74
1 file changed +1 -2
modified src/base/registrations/registrar.ts
@@ -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({