Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
haerdib committed Feb 6, 2024
1 parent b797e29 commit 85cab13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/sync/examples/runtime_update_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub fn send_code_update_extrinsic(
let new_wasm: &[u8] = include_bytes!("kitchensink_runtime.compact.compressed.wasm");

// Create a sudo `set_code` call.
let call = compose_call!(api.metadata(), "System", "set_code", new_wasm.to_vec());
let call = compose_call!(api.metadata(), "System", "set_code", new_wasm.to_vec()).unwrap();
let weight: Weight = 0.into();
let xt = compose_extrinsic!(&api, "Sudo", "sudo_unchecked_weight", call, weight).unwrap();

Expand Down
6 changes: 5 additions & 1 deletion testing/async/examples/pallet_transaction_payment_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ async fn main() {
let bob = AccountKeyring::Bob.to_account_id();

let block_hash = api.get_block_hash(None).await.unwrap().unwrap();
let encoded_xt = api.balance_transfer_allow_death(bob.into(), 1000000000000).await.encode();
let encoded_xt = api
.balance_transfer_allow_death(bob.into(), 1000000000000)
.await
.unwrap()
.encode();

// Tests
let _fee_details = api
Expand Down

0 comments on commit 85cab13

Please sign in to comment.