Skip to content

Commit

Permalink
tests: Add proof_size field for the Weight (#673)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
  • Loading branch information
lexnv committed Sep 29, 2022
1 parent 4722028 commit d4fda93
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions testing/integration-tests/src/frame/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ impl ContractsTestContext {
100_000_000_000_000_000, // endowment
Weight {
ref_time: 500_000_000_000,
proof_size: 0,
}, // gas_limit
None, // storage_deposit_limit
code,
Expand Down Expand Up @@ -105,6 +106,7 @@ impl ContractsTestContext {
100_000_000_000_000_000, // endowment
Weight {
ref_time: 500_000_000_000,
proof_size: 0,
}, // gas_limit
None, // storage_deposit_limit
code_hash,
Expand Down Expand Up @@ -139,6 +141,7 @@ impl ContractsTestContext {
0, // value
Weight {
ref_time: 500_000_000,
proof_size: 0,
}, // gas_limit
None, // storage_deposit_limit
input_data,
Expand Down
10 changes: 7 additions & 3 deletions testing/integration-tests/src/frame/sudo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,13 @@ async fn test_sudo_unchecked_weight() -> Result<(), subxt::Error> {
dest: bob,
value: 10_000,
});
let tx = node_runtime::tx()
.sudo()
.sudo_unchecked_weight(call, Weight { ref_time: 0 });
let tx = node_runtime::tx().sudo().sudo_unchecked_weight(
call,
Weight {
ref_time: 0,
proof_size: 0,
},
);

let found_event = api
.tx()
Expand Down

0 comments on commit d4fda93

Please sign in to comment.