Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gagdiez committed Sep 8, 2022
1 parent ffe8c05 commit 7579a2a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions frontend/near-interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,17 @@ export class HelloNEAR {
}

async getGreeting() {
return await this.wallet.viewMethod({ contractId: this.contractId, method: 'get_greeting' });
return await this.wallet.viewMethod({
contractId: this.contractId,
method: 'get_greeting'
});
}

async setGreeting(greeting) {
return await this.wallet.callMethod({ contractId: this.contractId, method: 'set_greeting', args: { greeting: greeting } });
return await this.wallet.callMethod({
contractId: this.contractId,
method: 'set_greeting',
args: { greeting: greeting }
});
}
}

0 comments on commit 7579a2a

Please sign in to comment.