Skip to content

Commit

Permalink
revert dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
zjb0807 committed Sep 27, 2023
1 parent 0eb002a commit 7c37e5d
Show file tree
Hide file tree
Showing 5 changed files with 540 additions and 405 deletions.
6 changes: 3 additions & 3 deletions ts-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"run-test": "yarn mocha -r ts-node/register/transpile-only --timeout 50000 --no-warnings"
},
"dependencies": {
"@acala-network/api": "~6.0.0",
"@acala-network/bodhi": "~2.7.8",
"@acala-network/api": "~5.0.3-0",
"@acala-network/bodhi": "~2.6.10",
"@babel/runtime": "^7.21.5",
"@polkadot/api": "^10.9.1",
"@polkadot/api": "^10.5.1",
"@openzeppelin/contracts": "4.9.3",
"@types/chai": "^4.2.22",
"@types/chai-as-promised": "^7.1.4",
Expand Down
2 changes: 1 addition & 1 deletion ts-tests/tests/test-bodhi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describeWithAcala("Acala RPC (bodhi.js)", (context) => {

step("should get gas price", async function () {
const gasPrice = await context.provider.getGasPrice();
expect(gasPrice.toString()).to.be.equal("100000000205");
expect(gasPrice.toString()).to.be.equal("200000274442");
});

step("should get fee data ", async function () {
Expand Down
4 changes: 2 additions & 2 deletions ts-tests/tests/test-gas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describeWithAcala("Acala RPC (Gas)", (context) => {
from: alice.getAddress(),
data: "0x" + Block.bytecode,
});
expect(gas.toNumber()).to.be.eq(11301014);
expect(gas.toNumber()).to.be.eq(593373);
});

it("eth_estimateResources for contract creation", async function () {
Expand All @@ -35,7 +35,7 @@ describeWithAcala("Acala RPC (Gas)", (context) => {
it("eth_estimateGas for contract call", async function () {
const contract = await deployContract(alice, Block);
const gas = await contract.estimateGas.multiply(3);
expect(gas.toNumber()).to.be.eq(100100);
expect(gas.toNumber()).to.be.eq(342409);
});

it("eth_estimateResources for contract call", async function () {
Expand Down
4 changes: 2 additions & 2 deletions ts-tests/tests/test-precompiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ describeWithAcala("Acala RPC (Precompile)", (context) => {
// currencies_len is MAX_UINT32
const input = '0xcfea5c46000000000000000000000000100000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000ffffffff0000000000000000000000001000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000010000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002503000101000202020202020202020202020202020202020202020202020202020202020202000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000901821a0600020004000000000000000000000000000000000000000000000000';

expect(await context.provider.call({
await expect(context.provider.call({
to: '0x000000000000000000000000000000000000040b',
// Passes system contract filter
from: '0x0000000000000000000100000000000000000001',
data: input,
})).to.be.rejectedWith('VM Exception while processing transaction: execution revert: invalid currencies size');
})).to.be.rejectedWith('VM Exception while processing transaction: execution revert: invalid currencies size');
});
});
Loading

0 comments on commit 7c37e5d

Please sign in to comment.