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

Commit

Permalink
rename request
Browse files Browse the repository at this point in the history
  • Loading branch information
newcodepusher committed Sep 10, 2019
1 parent 49bf426 commit acd1538
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ export class Wallet extends React.Component {
case 'addFunds':
this.onAddFunds(e.data.params, e.currentTarget.origin);
return true;
case 'confirmTX':
case 'sendCustomTransaction':
this.onConfirmTransactionRequest(e.data.params, e.currentTarget.origin);
return true;
}
Expand Down Expand Up @@ -589,11 +589,11 @@ export class Wallet extends React.Component {
this.setState({
balance: await this.web3sol.getBalance(this.state.account.publicKey),
});
this.postWindowMessage('confirmTXResponse', {err: true});
this.postWindowMessage('sendCustomTransactionResponse', {err: true});
throw err;
}

this.postWindowMessage('confirmTXResponse', {signature});
this.postWindowMessage('sendCustomTransactionResponse', {signature});
if (closeOnSuccess) {
window.close();
} else {
Expand Down Expand Up @@ -755,7 +755,7 @@ export class Wallet extends React.Component {
return (
<React.Fragment>
{this.renderSendTokensPanel()}
{this.renderConfirmTxPanel()}
{this.renderSendCustomTransactionPanel()}
</React.Fragment>
);
}
Expand Down Expand Up @@ -874,7 +874,7 @@ export class Wallet extends React.Component {
);
}

renderConfirmTxPanel() {
renderSendCustomTransactionPanel() {
const confirmDisabled = this.state.confirmationSignature === null;
return (
<Panel>
Expand Down

0 comments on commit acd1538

Please sign in to comment.