Skip to content

Commit

Permalink
test(bal): use movi instead?
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Dec 2, 2024
1 parent 1d4dd54 commit d399d58
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions fuel-zkvm-primitives-utils/src/vm/contract.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::vm::base::AsRepr;
use fuel_core_types::fuel_asm::{op, GTFArgs, Instruction, RegId};
use fuel_core_types::fuel_asm::{op, Instruction, RegId};
use fuel_core_types::fuel_tx::Word;
use fuel_core_types::fuel_types::bytes::WORD_SIZE;
use fuel_core_types::fuel_types::Bytes32;
use fuels::prelude::AssetId;
use fuels::prelude::ContractId;
Expand Down Expand Up @@ -172,10 +171,9 @@ impl ContractInstruction {
}

fn bal() -> Vec<Instruction> {
let word_size = WORD_SIZE.try_into().unwrap();
vec![
op::gtf_args(0x11, 0x00, GTFArgs::ScriptData),
op::addi(0x12, 0x11, word_size),
op::movi(0x11, 0),
op::addi(0x12, 0x11, AssetId::LEN.try_into().unwrap()),
op::bal(0x10, 0x12, 0x11),
op::jmpb(RegId::ZERO, 0),
]
Expand Down

0 comments on commit d399d58

Please sign in to comment.