Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add proof_size field for the Weight #673

Merged
merged 1 commit into from
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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