Skip to content

Commit

Permalink
Merge pull request #5 from EdwardsVO/development
Browse files Browse the repository at this point in the history
update near-api contract instance
  • Loading branch information
EdwardsVO authored Apr 4, 2022
2 parents 028d762 + ef2aa59 commit c0fdd96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/components/near.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export const initContract = async () => {
nearConfig.contractName,
{
// View methods are read-only – they don't modify the state, but usually return some value
viewMethods: ['getAllProposals', 'getProposal', 'getAllUsers', 'getAllPayments', 'getUser', 'getAllContributions', 'getTime'],
viewMethods: [],
// Change methods can modify the state, but you don't receive the returned value when called
changeMethods: ['createUser', 'createNewProposal', 'createContribution','fund', 'login'],
changeMethods: [],
// Sender is the account ID to initialize transactions.
// getAccountId() will return empty string if user is still unauthorized
// @ts-ignore: Unreachable code error
Expand Down

0 comments on commit c0fdd96

Please sign in to comment.