Skip to content

Commit 788c56b

Browse files
committed
fix
1 parent d686bde commit 788c56b

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

e2e-tests/e2e-hardhat/test/token.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ describe('Token contract', () => {
133133
});
134134

135135
it('should revert when tring to transfer more than allowed amount', async () => {
136-
await token.approve(userAddress, 100);
136+
await (await token.approve(userAddress, 100)).wait();
137137
await expect(token.connect(user).transferFrom(deployerAddress, userAddress, 1000)).to.be.revertedWith('ERC20: insufficient allowance');
138138
});
139139

140140
it('should revert when transfering to 0x0 address', async () => {
141-
await token.approve(userAddress, 100);
141+
await (await token.approve(userAddress, 100)).wait();
142142
await expect(token.connect(user).transferFrom(deployerAddress, NULL_ADDRESS, 50)).to.be.revertedWith(
143143
'ERC20: transfer to the zero address'
144144
);

package.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,10 @@
1414
"scripts": {
1515
"clean": "yarn workspaces foreach -pvit --include \"@acala-network/*\" run clean",
1616
"build": "yarn workspaces foreach -pvit --include \"@acala-network/*\" run build",
17-
"lint": "tsc --noEmit --project tsconfig.json && eslint . --ext .js,.ts --fix",
18-
"fix": "eslint . --ext .js,.ts --fix",
17+
"lint": "eslint . --ext .js,.ts --fix",
1918
"test:all": "yarn workspaces foreach -vit run test",
2019
"test": "vitest run",
2120
"test:watch": "vitest",
22-
"build:waffle": "yarn workspaces foreach -pvit --include \"evm-waffle-example*\" run build",
23-
"test:waffle": "./examples/waffle/run.sh",
24-
"start:chain": "docker compose up --build -- chain-ready",
25-
"start:eth-rpc-adapter": "docker compose up --build -- eth-rpc-adapter-ready",
26-
"start:eth-rpc-adapter-subql": "docker compose up --build -- eth-rpc-adapter-with-subql-ready",
27-
"feed-tx": "yarn e2e:feed-tx && yarn e2e:feed-tx-2",
28-
"e2e:feed-tx": "yarn workspace evm-waffle-example-dex run test",
29-
"e2e:feed-tx-2": "yarn workspace evm-waffle-example-e2e run test",
30-
"e2e:eth-providers": "yarn start:chain; yarn e2e:feed-tx; yarn start:eth-rpc-adapter; yarn workspace @acala-network/eth-providers run test:e2e",
31-
"e2e:eth-rpc-adapter": "yarn start:eth-rpc-adapter-subql; yarn e2e:feed-tx; yarn e2e:feed-tx-2; yarn workspace @acala-network/eth-rpc-adapter run test:CI",
32-
"e2e:waffle": "yarn start:chain; yarn run test:waffle",
33-
"e2e:truffle": "yarn start:eth-rpc-adapter-subql; cd examples/truffle-tutorials; yarn install --immutable; yarn test:mandala",
34-
"e2e:hardhat": "yarn start:eth-rpc-adapter; cd examples/hardhat-tutorials; yarn install --immutable; yarn test:mandala",
3521
"bump": "yarn workspaces foreach -vit --include '@acala-network/*' --exclude '@acala-network/evm-subql' version",
3622
"postinstall": "husky install",
3723
"merge-coverage": "./scripts/merge-coverage.sh"

0 commit comments

Comments
 (0)