diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 97e18cb5a1..e865a61430 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -26,7 +26,7 @@ jobs: ref: data.data.head.ref, sha: data.data.head.sha, } - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive ref: ${{ fromJson(steps.issue.outputs.result).sha }} diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 8b02c24349..8b03bf650c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -27,7 +27,7 @@ jobs: runs-on: [self-hosted, linux] steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - uses: actions/cache@v3 @@ -52,7 +52,7 @@ jobs: acala-primitives \ acala-rpc \ acala-runtime runtime-common runtime-integration-tests karura-runtime mandala-runtime \ - ethjson evm-jsontests jsontests \ + ethjson evm-jsontests \ --exclude-files **/mock.rs **/weights.rs **/weights/* --out xml - name: Upload to codecov.io uses: codecov/codecov-action@v3 diff --git a/.github/workflows/docker-build-internal.yml b/.github/workflows/docker-build-internal.yml index 75d093f437..a0326e8dec 100644 --- a/.github/workflows/docker-build-internal.yml +++ b/.github/workflows/docker-build-internal.yml @@ -15,7 +15,7 @@ jobs: matrix: network: [mandala, karura, acala] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.branch || github.ref }} submodules: recursive diff --git a/.github/workflows/docker-build-production.yml b/.github/workflows/docker-build-production.yml index 27f63bc791..f70c85f2b9 100644 --- a/.github/workflows/docker-build-production.yml +++ b/.github/workflows/docker-build-production.yml @@ -32,7 +32,7 @@ jobs: matrix: ${{ steps.docker-setup-matrix.outputs.matrix }} version: ${{ steps.docker-setup-matrix.outputs.version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive @@ -52,7 +52,7 @@ jobs: strategy: matrix: ${{fromJson(needs.setup-matrix.outputs.matrix)}} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.branch || github.ref }} submodules: recursive diff --git a/.github/workflows/docker-build-profiling.yml b/.github/workflows/docker-build-profiling.yml index ea38dd4094..c5e8a6fdfb 100644 --- a/.github/workflows/docker-build-profiling.yml +++ b/.github/workflows/docker-build-profiling.yml @@ -12,7 +12,7 @@ jobs: name: "Build docker profiling image for acala" runs-on: self-hosted steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.branch || github.ref }} submodules: recursive diff --git a/.github/workflows/extrinsic-ordering-check-from-bin.yml b/.github/workflows/extrinsic-ordering-check-from-bin.yml index 4b68598dfb..71ce8d5457 100644 --- a/.github/workflows/extrinsic-ordering-check-from-bin.yml +++ b/.github/workflows/extrinsic-ordering-check-from-bin.yml @@ -27,7 +27,7 @@ jobs: IMAGE: ${{ github.event.inputs.image }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - uses: actions/setup-node@v4 diff --git a/.github/workflows/extrinsic-ordering-check-on-release.yml b/.github/workflows/extrinsic-ordering-check-on-release.yml index 54c50ba149..836df9e7c5 100644 --- a/.github/workflows/extrinsic-ordering-check-on-release.yml +++ b/.github/workflows/extrinsic-ordering-check-on-release.yml @@ -36,7 +36,7 @@ jobs: check-extrinsic-ordering-on-release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 submodules: recursive diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 99bb36b18e..25762b709d 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -52,7 +52,7 @@ jobs: steps: # Checkout the Acala codebase - name: Checkout Codebase - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 submodules: true @@ -69,7 +69,7 @@ jobs: # Build WASM with Substrate Runtime Tool - name: Srtool build id: srtool_build - uses: chevdor/srtool-actions@v0.9.0 + uses: chevdor/srtool-actions@v0.9.1 env: BUILD_OPTS: "--features on-chain-release-build,no-metadata-docs" with: diff --git a/.github/workflows/update-tokens.yml b/.github/workflows/update-tokens.yml index c7b973bc05..524f176fa5 100644 --- a/.github/workflows/update-tokens.yml +++ b/.github/workflows/update-tokens.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive persist-credentials: false diff --git a/.github/workflows/verify-bootnotes.yml b/.github/workflows/verify-bootnotes.yml index 576d05cf43..a085c5fb98 100644 --- a/.github/workflows/verify-bootnotes.yml +++ b/.github/workflows/verify-bootnotes.yml @@ -8,7 +8,7 @@ jobs: verify-karura: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - name: verify bootnotes @@ -17,7 +17,7 @@ jobs: verify-acala: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - name: verify bootnotes diff --git a/modules/liquid-crowdloan/src/tests.rs b/modules/liquid-crowdloan/src/tests.rs index 8b19cda70b..7546c48206 100644 --- a/modules/liquid-crowdloan/src/tests.rs +++ b/modules/liquid-crowdloan/src/tests.rs @@ -32,6 +32,7 @@ fn redeem_works() { .balances(vec![(BOB, LCDOT, 100), (LiquidCrowdloan::account_id(), DOT, 100)]) .build() .execute_with(|| { + assert_eq!(Currencies::free_balance(LCDOT, &BOB), 100); assert_ok!(LiquidCrowdloan::redeem(RuntimeOrigin::signed(BOB), 100)); assert_eq!(Currencies::free_balance(LCDOT, &BOB), 0); assert_eq!(Currencies::free_balance(DOT, &BOB), 100); @@ -119,6 +120,7 @@ fn set_redeem_currency_id() { LDOT )); + assert_eq!(Currencies::free_balance(LCDOT, &ALICE), 100); assert_err!( LiquidCrowdloan::redeem(RuntimeOrigin::signed(ALICE), u128::MAX), sp_runtime::ArithmeticError::Overflow diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 6939a60b09..70f3463b8a 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.73.0" +channel = "1.74.0" components = ["rustfmt", "clippy"] targets = ["wasm32-unknown-unknown"]