Skip to content

Commit

Permalink
sdk: use hash instead of wasm code
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Jul 5, 2023
1 parent 8e087d9 commit 3d94311
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shared/src/ledger/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1475,6 +1475,10 @@ pub async fn submit_init_account<
.await
.unwrap();

let tx_code_path = String::from_utf8(args.tx_code_path).unwrap();
let tx_code_hash =
query_wasm_code_hash(client, tx_code_path).await.unwrap();

let mut tx = Tx::new(TxType::Raw);
tx.header.chain_id = args.tx.chain_id.clone().unwrap();
tx.header.expiration = args.tx.expiration;
Expand Down

0 comments on commit 3d94311

Please sign in to comment.