Skip to content

Commit

Permalink
Added requested changes for clarity
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Vasilescu <[email protected]>
  • Loading branch information
JustEatAnApple and andreivasilescu24 committed Aug 29, 2024
1 parent 6dc9868 commit 3e46541
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions contracts/examples/adder/interact/src/basic_interact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use basic_interact_config::Config;
use basic_interact_state::State;
use clap::Parser;

use multiversx_sc_snippets::{imports::*, sdk::data::keystore::InsertPassword};
use multiversx_sc_snippets::imports::*;

const INTERACTOR_SCENARIO_TRACE_PATH: &str = "interactor_trace.scen.json";

Expand Down Expand Up @@ -227,7 +227,7 @@ impl AdderInteract {
.to(self.state.current_adder_address())
.gas(6_000_000)
.typed(adder_proxy::AdderProxy)
.upgrade(BigUint::from(new_value))
.upgrade(new_value)
.code_metadata(CodeMetadata::UPGRADEABLE)
.code(ADDER_CODE_PATH)
.returns(ExpectError(code, msg))
Expand All @@ -244,7 +244,7 @@ impl AdderInteract {
.to(self.state.current_adder_address())
.gas(6_000_000)
.typed(adder_proxy::AdderProxy)
.upgrade(BigUint::from(new_value))
.upgrade(new_value)
.code_metadata(CodeMetadata::UPGRADEABLE)
.code(ADDER_CODE_PATH)
.prepare_async()
Expand Down
5 changes: 4 additions & 1 deletion framework/snippets/src/imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ pub use crate::{
dns_address_for_name, test_wallets, Interactor, InteractorPrepareAsync, StepBuffer,
};

pub use multiversx_sdk::wallet::Wallet;
pub use multiversx_sdk::{
wallet::Wallet,
data::keystore::InsertPassword,
};

pub use env_logger;
pub use tokio;

0 comments on commit 3e46541

Please sign in to comment.