Skip to content

Commit

Permalink
Move abi helper into constants
Browse files Browse the repository at this point in the history
  • Loading branch information
samuveth committed Nov 30, 2023
1 parent 0167676 commit ac2124d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/SetupStrategyBasic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { getTokenPrices } from '@/helpers/covalent';
import { call, clone } from '@snapshot-labs/snapshot.js/src/utils';
import { JsonRpcProvider } from '@ethersproject/providers';
import { ERC20ABI } from '@/helpers/abi';
import { ERC20ABI } from '@/helpers/constants';
import { isAddress } from '@ethersproject/address';
import { shorten } from '@/helpers/utils';
Expand Down
5 changes: 0 additions & 5 deletions src/helpers/abi.ts

This file was deleted.

6 changes: 6 additions & 0 deletions src/helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ export const SPACE_CATEGORIES = [
'creator',
'collector'
];

export const ERC20ABI = [
'function name() public view returns (string)',
'function decimals() view returns (uint32)',
'function symbol() view returns (string)'
];

0 comments on commit ac2124d

Please sign in to comment.