tests: Add proof_size field for the Weight (#673)

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2022-09-29 18:17:15 +03:00
committed by GitHub
parent 4722028ce7
commit d4fda9366e
2 changed files with 10 additions and 3 deletions
@@ -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,
@@ -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,
@@ -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,
+7 -3
View File
@@ -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()