Skip to content

Commit

Permalink
Merge pull request #229 from multiversx/interactor-test-fix
Browse files Browse the repository at this point in the history
Interactor test fix + Actions update
  • Loading branch information
andreiblt1304 authored Feb 3, 2025
2 parents 6be9268 + 767321b commit b1b88c7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 34 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ permissions:
jobs:
contracts:
name: Contracts
uses: multiversx/mx-sc-actions/.github/workflows/[email protected].1
uses: multiversx/mx-sc-actions/.github/workflows/[email protected].2
with:
rust-toolchain: stable
coverage-args: --ignore-filename-regex='/.cargo/git' --output ./coverage.md
enable-interactor-tests: true
secrets:
token: ${{ secrets.GITHUB_TOKEN }}

2 changes: 1 addition & 1 deletion .github/workflows/on_pull_request_build_contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ permissions:

jobs:
build:
uses: multiversx/mx-sc-actions/.github/workflows/reproducible-build.yml@v3.2.0
uses: multiversx/mx-sc-actions/.github/workflows/reproducible-build.yml@v4.2.2
with:
image_tag: v8.0.0
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:

jobs:
build:
uses: multiversx/mx-sc-actions/.github/workflows/reproducible-build.yml@v3.2.0
uses: multiversx/mx-sc-actions/.github/workflows/reproducible-build.yml@v4.2.2
with:
image_tag: v8.0.0
attach_to_existing_release: true
6 changes: 2 additions & 4 deletions sovereign-forge/interactor/src/interact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,15 +246,13 @@ impl ContractInteract {
}

pub async fn deploy_header_verifier_template(&mut self) {
let chain_config_address = Bech32Address::from_bech32_string("chain_config".to_string());

let new_address = self
.interactor
.tx()
.from(&self.wallet_address)
.gas(50_000_000u64)
.typed(HeaderverifierProxy)
.init(chain_config_address)
.init(self.state.config_address.clone().unwrap())
.returns(ReturnsNewAddress)
.code(MxscPath::new(HEADER_VERIFIER_CODE_PATH))
.run()
Expand All @@ -274,7 +272,7 @@ impl ContractInteract {
.interactor
.tx()
.from(&self.wallet_address)
.gas(80_000_000u64)
.gas(100_000_000u64)
.typed(EsdtSafeProxy)
.init(false)
.returns(ReturnsNewAddress)
Expand Down
2 changes: 1 addition & 1 deletion sovereign-forge/interactor/tests/interact_cs_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ async fn deploy_test_sovereign_forge_cs() {
let mut interactor = ContractInteract::new().await;
interactor.deploy().await;

interactor.deploy_header_verifier_template().await;
interactor.deploy_chain_config_template().await;
interactor.deploy_header_verifier_template().await;
interactor.deploy_esdt_safe_template().await;
interactor.deploy_fee_market_template().await;
interactor.deploy_chain_factory().await;
Expand Down
26 changes: 0 additions & 26 deletions sovereign-forge/interactor/tests/interact_tests.rs

This file was deleted.

0 comments on commit b1b88c7

Please sign in to comment.