Skip to content

Commit

Permalink
create_contract -> create_contract_tx
Browse files Browse the repository at this point in the history
  • Loading branch information
acerone85 committed Feb 5, 2025
1 parent be996d8 commit e6aadd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/fraud_proofs/global_merkle_root/storage/src/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ mod tests {
.collect::<Vec<u8>>();

let mut rng = StdRng::seed_from_u64(1337);
let create_contract_tx = create_contract(&contract_bytecode, &mut rng);
let create_contract_tx = create_contract_tx(&contract_bytecode, &mut rng);
let contract_id = create_contract_tx
.metadata()
.as_ref()
Expand Down Expand Up @@ -618,7 +618,7 @@ mod tests {

// TODO: https://github.com/FuelLabs/fuel-core/issues/2654
// This code is copied from the executor. We should refactor it to be shared.
fn create_contract(bytecode: &[u8], rng: &mut impl rand::RngCore) -> Create {
fn create_contract_tx(bytecode: &[u8], rng: &mut impl rand::RngCore) -> Create {
let salt: Salt = rng.gen();
let contract = Contract::from(bytecode);
let root = contract.root();
Expand Down

0 comments on commit e6aadd5

Please sign in to comment.