Skip to content

Commit

Permalink
add constants to dao v1 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
josemarinas committed Feb 16, 2024
1 parent 5382eaf commit 2ce2430
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions packages/subgraph/tests/dao/dao_v1_0_0.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ import {
ADDRESS_FOUR,
ERC20_AMOUNT_HALF,
ERC20_AMOUNT_FULL,
ERC20_TOTAL_SUPPLY,
TOKEN_NAME,
TOKEN_SYMBOL,
ERC20_DECIMALS,
} from '../constants';
import {
ExtendedDao,
Expand Down Expand Up @@ -989,7 +993,13 @@ describe('handleExecuted', () => {

describe('ERC20 action', () => {
beforeAll(() => {
createERC20TokenCalls(DAO_TOKEN_ADDRESS, '10', 'name', 'symbol', '6');
createERC20TokenCalls(
DAO_TOKEN_ADDRESS,
ERC20_TOTAL_SUPPLY,
TOKEN_NAME,
TOKEN_SYMBOL,
ERC20_DECIMALS
);
getBalanceOf(DAO_TOKEN_ADDRESS, DAO_ADDRESS, ERC20_AMOUNT_HALF);
getBalanceOf(DAO_TOKEN_ADDRESS, DAO_TOKEN_ADDRESS, ERC20_AMOUNT_HALF);

Expand Down Expand Up @@ -1243,7 +1253,12 @@ describe('handleExecuted', () => {

describe('ERC721 action', () => {
beforeAll(() => {
createERC20TokenCalls(DAO_TOKEN_ADDRESS, '10', 'name', 'symbol');
createERC20TokenCalls(
DAO_TOKEN_ADDRESS,
ERC20_TOTAL_SUPPLY,
TOKEN_NAME,
TOKEN_SYMBOL
);

getSupportsInterface(DAO_TOKEN_ADDRESS, '0x01ffc9a7', true);
getSupportsInterface(DAO_TOKEN_ADDRESS, '80ac58cd', true);
Expand Down

0 comments on commit 2ce2430

Please sign in to comment.