Skip to content

Commit

Permalink
Merge pull request #1398 from multiversx/rust-vm-code-metadata
Browse files Browse the repository at this point in the history
get_code_metadata api
  • Loading branch information
andrei-marinica authored Jan 29, 2024
2 parents d24370c + c3a69fd commit d71977d
Show file tree
Hide file tree
Showing 33 changed files with 379 additions and 522 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ fn world() -> ScenarioWorld {
let mut blockchain = ScenarioWorld::new();
blockchain.set_current_dir_from_workspace("contracts/benchmarks/mappers/map-repeat");

blockchain.register_contract("mxsc:output/map-repeat.mxsc.json", map_repeat::ContractBuilder);
blockchain.register_contract(
"mxsc:output/map-repeat.mxsc.json",
map_repeat::ContractBuilder,
);
blockchain
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ fn world() -> ScenarioWorld {
let mut blockchain = ScenarioWorld::new();
blockchain.set_current_dir_from_workspace("contracts/benchmarks/mappers/set-repeat");

blockchain.register_contract("mxsc:output/set-repeat.mxsc.json", set_repeat::ContractBuilder);
blockchain.register_contract(
"mxsc:output/set-repeat.mxsc.json",
set_repeat::ContractBuilder,
);
blockchain
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ fn world() -> ScenarioWorld {
let mut blockchain = ScenarioWorld::new();
blockchain.set_current_dir_from_workspace("contracts/benchmarks/mappers/vec-repeat");

blockchain.register_contract("mxsc:output/vec-repeat.mxsc.json", vec_repeat::ContractBuilder);
blockchain.register_contract(
"mxsc:output/vec-repeat.mxsc.json",
vec_repeat::ContractBuilder,
);
blockchain
}

Expand Down
5 changes: 4 additions & 1 deletion contracts/benchmarks/str-repeat/tests/scenario_rs_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ use multiversx_sc_scenario::*;

fn world() -> ScenarioWorld {
let mut blockchain = ScenarioWorld::new();
blockchain.register_contract("mxsc:output/str-repeat.mxsc.json", str_repeat::ContractBuilder);
blockchain.register_contract(
"mxsc:output/str-repeat.mxsc.json",
str_repeat::ContractBuilder,
);
blockchain
}

Expand Down
Loading

0 comments on commit d71977d

Please sign in to comment.