Skip to content

Commit

Permalink
Build + updated call to UserBuiltinProxy
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Baltariu <[email protected]>
  • Loading branch information
andreiblt1304 committed Dec 20, 2024
1 parent 0fe84cf commit 1e48365
Show file tree
Hide file tree
Showing 19 changed files with 114 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions chain-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ version = "=0.54.5"
[dependencies.multiversx-sc-modules]
version = "=0.54.5"

[dependencies.header-verifier]
path = "../header-verifier"

[dependencies.transaction]
path = "../common/transaction"

Expand Down
2 changes: 1 addition & 1 deletion chain-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub trait ChainConfigContract:
self.require_config_set();
// validator set in header verifier
self.tx()
.to(ESDTSystemSCAddress)
.to(ToSelf)
.typed(UserBuiltinProxy)
.change_owner_address(&header_verifier_address)
.sync_call();
Expand Down
6 changes: 4 additions & 2 deletions chain-config/tests/chain_config_unit_tests.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
use multiversx_sc::types::{BigUint, TestAddress, TestSCAddress};
use multiversx_sc::types::{BigUint, MultiValueEncoded, TestAddress, TestSCAddress};

Check warning on line 1 in chain-config/tests/chain_config_unit_tests.rs

View workflow job for this annotation

GitHub Actions / Contracts / Interactor tests

unused import: `MultiValueEncoded`

Check warning on line 1 in chain-config/tests/chain_config_unit_tests.rs

View workflow job for this annotation

GitHub Actions / Contracts / Rust tests

unused import: `MultiValueEncoded`

Check warning on line 1 in chain-config/tests/chain_config_unit_tests.rs

View workflow job for this annotation

GitHub Actions / Contracts / Test Coverage

unused import: `MultiValueEncoded`

Check warning on line 1 in chain-config/tests/chain_config_unit_tests.rs

View workflow job for this annotation

GitHub Actions / Contracts / Wasm tests

unused import: `MultiValueEncoded`

Check warning on line 1 in chain-config/tests/chain_config_unit_tests.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] chain-config/tests/chain_config_unit_tests.rs#L1

warning: unused import: `MultiValueEncoded` --> chain-config/tests/chain_config_unit_tests.rs:1:37 | 1 | use multiversx_sc::types::{BigUint, MultiValueEncoded, TestAddress, TestSCAddress}; | ^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
Raw output
chain-config/tests/chain_config_unit_tests.rs:1:37:w:warning: unused import: `MultiValueEncoded`
 --> chain-config/tests/chain_config_unit_tests.rs:1:37
  |
1 | use multiversx_sc::types::{BigUint, MultiValueEncoded, TestAddress, TestSCAddress};
  |                                     ^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default


__END__
use multiversx_sc_scenario::{
api::StaticApi, imports::MxscPath, ExpectError, ScenarioTxRun, ScenarioWorld,
};
use proxies::chain_config_proxy::ChainConfigContractProxy;
use proxies::{
chain_config_proxy::ChainConfigContractProxy, header_verifier_proxy::HeaderverifierProxy,

Check warning on line 6 in chain-config/tests/chain_config_unit_tests.rs

View workflow job for this annotation

GitHub Actions / Contracts / Interactor tests

unused import: `header_verifier_proxy::HeaderverifierProxy`

Check warning on line 6 in chain-config/tests/chain_config_unit_tests.rs

View workflow job for this annotation

GitHub Actions / Contracts / Rust tests

unused import: `header_verifier_proxy::HeaderverifierProxy`

Check warning on line 6 in chain-config/tests/chain_config_unit_tests.rs

View workflow job for this annotation

GitHub Actions / Contracts / Test Coverage

unused import: `header_verifier_proxy::HeaderverifierProxy`

Check warning on line 6 in chain-config/tests/chain_config_unit_tests.rs

View workflow job for this annotation

GitHub Actions / Contracts / Wasm tests

unused import: `header_verifier_proxy::HeaderverifierProxy`

Check warning on line 6 in chain-config/tests/chain_config_unit_tests.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] chain-config/tests/chain_config_unit_tests.rs#L6

warning: unused import: `header_verifier_proxy::HeaderverifierProxy` --> chain-config/tests/chain_config_unit_tests.rs:6:51 | 6 | chain_config_proxy::ChainConfigContractProxy, header_verifier_proxy::HeaderverifierProxy, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Raw output
chain-config/tests/chain_config_unit_tests.rs:6:51:w:warning: unused import: `header_verifier_proxy::HeaderverifierProxy`
 --> chain-config/tests/chain_config_unit_tests.rs:6:51
  |
6 |     chain_config_proxy::ChainConfigContractProxy, header_verifier_proxy::HeaderverifierProxy,
  |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


__END__
};
use transaction::SovereignConfig;

const CONFIG_ADDRESS: TestSCAddress = TestSCAddress::new("config-address");
Expand Down
11 changes: 11 additions & 0 deletions chain-config/wasm-chain-config-full/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions chain-config/wasm-chain-config-view/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions chain-config/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions chain-factory/wasm-chain-factory-full/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions chain-factory/wasm-chain-factory-view/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions chain-factory/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions enshrine-esdt-safe/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sovereign-forge/wasm-sovereign-forge-full/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sovereign-forge/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions token-handler/wasm-token-handler-full/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions token-handler/wasm-token-handler-view/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions token-handler/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1e48365

Please sign in to comment.