Skip to content

Commit

Permalink
Fix test upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-mysten committed Oct 29, 2024
1 parent 4f5dba5 commit 6e59091
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/sui-transaction-builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,6 @@ mod tests {

use crate::object::Object;
use crate::Function;
use crate::RawBytes;
use crate::Serialized;
use crate::TransactionBuilder;

Expand Down Expand Up @@ -994,11 +993,11 @@ mod tests {

let upgrade_policy = tx.input(Serialized(&0u8));
// the digest of the new package that was compiled
let package_digest = [
let package_digest: &[u8] = &[
68, 89, 156, 51, 190, 35, 155, 216, 248, 49, 135, 170, 106, 42, 190, 4, 208, 59, 155,
89, 74, 63, 70, 95, 207, 78, 227, 22, 136, 146, 57, 79,
];
let digest_arg = tx.input(RawBytes(package_digest.to_vec()));
let digest_arg = tx.input(Serialized(&package_digest));

// we need this ticket to authorize the upgrade
let upgrade_ticket = tx.move_call(
Expand Down Expand Up @@ -1039,8 +1038,6 @@ mod tests {
tx.set_gas_budget(500000000);
tx.set_gas_price(1000);
tx.set_sender(address);
let sender = tx.input(Serialized(&address));
tx.transfer_objects(vec![upgrade_cap], sender);
let tx = tx.finish().unwrap();
let sig = pk.sign_transaction(&tx).unwrap();
let effects = client.execute_tx(vec![sig], &tx).await;
Expand Down

0 comments on commit 6e59091

Please sign in to comment.