Skip to content

Commit

Permalink
Polkadot: Upgrade substrate contracts node to v0.39.0 (hyperledger#1631)
Browse files Browse the repository at this point in the history
  • Loading branch information
xermicus committed Mar 28, 2024
1 parent 22d6217 commit 5764e01
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ jobs:
# We can't run substrate node as a github actions service, since it requires
# command line arguments. See https://github.com/actions/runner/pull/1152
- name: Start substrate contracts node
run: echo id=$(docker run -d -p 9944:9944 ghcr.io/hyperledger/solang-substrate-ci:ad6da01 substrate-contracts-node --dev --rpc-external -lwarn,runtime::contracts=trace) >> $GITHUB_OUTPUT
run: echo id=$(docker run -d -p 9944:9944 ghcr.io/hyperledger/solang-substrate-ci:62a8a6c substrate-contracts-node --dev --rpc-external -lwarn,runtime::contracts=trace) >> $GITHUB_OUTPUT
id: substrate
- uses: actions/download-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions integration/polkadot/asserts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ describe('Deploy asserts contract and test', () => {
throw new Error("should not succeed");
}, (res) => res);

// Error 25 is ContractReverted
expect(res2.dispatchError.toHuman()).toEqual({ "Module": { "error": "0x19000000", "index": "8" } });
// Error 26 is ContractReverted
expect(res2.dispatchError.toHuman()).toEqual({ "Module": { "error": "0x1a000000", "index": "8" } });

let res3 = await query(conn, alice, contract, "var");

Expand Down
4 changes: 2 additions & 2 deletions integration/polkadot/call_flags.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ describe('Deploy the CallFlags contract and tests for various call flag combinat
const flags = [CallFlags.TAIL_CALL];
const answer = await query(conn, alice, contract, "echo", [contract.address, foo, voyager, flags]);
const { index, error } = answer.result.asErr.asModule;
// Module 8 error 0x15 is ReentranceDenied in the contracts pallet
// Module 8 error 0x16 is ReentranceDenied in the contracts pallet
expect(index.toJSON()).toStrictEqual(8);
expect(error.toJSON()).toStrictEqual("0x15000000");
expect(error.toJSON()).toStrictEqual("0x16000000");
});

it('fails with the input forwarding flag', async function () {
Expand Down
8 changes: 4 additions & 4 deletions integration/polkadot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"test": "tsc; ts-mocha -t 20000 --exit *.spec.ts",
"build": "./build.sh",
"build-ink": "docker run --rm -v $(pwd)/ink/caller:/opt/contract ghcr.io/hyperledger/solang-substrate-ci:ad6da01 cargo contract build --release --manifest-path /opt/contract/Cargo.toml"
"build-ink": "docker run --rm -v $(pwd)/ink/caller:/opt/contract ghcr.io/hyperledger/solang-substrate-ci:62a8a6c cargo contract build --release --manifest-path /opt/contract/Cargo.toml"
},
"contributors": [
{
Expand All @@ -30,10 +30,10 @@
"typescript": "^4.7"
},
"dependencies": {
"@polkadot/api": "^10.11",
"@polkadot/api-contract": "^10.11",
"@polkadot/api": "^10.12",
"@polkadot/api-contract": "^10.12",
"@polkadot/keyring": "^12.6",
"@polkadot/types": "^10.11",
"@polkadot/types": "^10.12",
"@polkadot/util-crypto": "^12.6",
"websnark": "git+https://github.com/tornadocash/websnark.git#4c0af6a8b65aabea3c09f377f63c44e7a58afa6d",
"snarkjs": "git+https://github.com/tornadocash/snarkjs.git#869181cfaf7526fe8972073d31655493a04326d5",
Expand Down

0 comments on commit 5764e01

Please sign in to comment.