Skip to content
This repository has been archived by the owner on Nov 28, 2020. It is now read-only.

Commit

Permalink
Confirm transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Aug 25, 2018
1 parent a26a8c0 commit f5352a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,12 @@ export class Wallet extends React.Component {
'Sending Transaction',
'Please wait...',
async () => {
await this.web3sol.sendTokens(
const signature = await this.web3sol.sendTokens(
this.web3solAccount,
this.state.recipientPublicKey,
this.state.recipientAmount
);
await this.web3sol.confirmTransaction(signature);
this.setState({
balance: await this.web3sol.getBalance(this.web3solAccount.publicKey),
});
Expand Down

0 comments on commit f5352a8

Please sign in to comment.