Skip to content

Commit

Permalink
fix(hooks): separate view methods from change methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sekaiking committed Jan 3, 2022
1 parent fa01318 commit 9a64c70
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/hooks/src/near-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ export function getContractMethods(contractName: string) {
'generate',
'claim_media',
'burn_design',
'view_media',
'nft_tokens',
],
viewMethods: [
'nft_total_supply',
'nft_metadata',
'nft_token',
'nft_tokens_for_owner',
'nft_tokens',
'view_media',
],
viewMethods: ['nft_total_supply', 'nft_metadata', 'nft_token'],
}
case 'market':
return {
Expand Down

0 comments on commit 9a64c70

Please sign in to comment.