From 0f1aef2d0e505b6c3a2365f9371161a5df134fdc Mon Sep 17 00:00:00 2001 From: rymnc <43716372+rymnc@users.noreply.github.com> Date: Tue, 3 Dec 2024 19:36:04 +0530 Subject: [PATCH] test(fixtures): remove wallet adjust for fee --- fuel-zkvm-primitives-test-fixtures/src/opcodes.rs | 2 +- fuel-zkvm-primitives-utils/src/vm/contract.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fuel-zkvm-primitives-test-fixtures/src/opcodes.rs b/fuel-zkvm-primitives-test-fixtures/src/opcodes.rs index 68eec64..fdc70f0 100644 --- a/fuel-zkvm-primitives-test-fixtures/src/opcodes.rs +++ b/fuel-zkvm-primitives-test-fixtures/src/opcodes.rs @@ -62,7 +62,7 @@ async fn send_script_transaction( } wallet.add_witnesses(&mut builder)?; - wallet.adjust_for_fee(&mut builder, 0).await?; + // wallet.adjust_for_fee(&mut builder, 0).await?; let provider = wallet.provider().expect("No provider"); let tx = builder.build(provider).await?; diff --git a/fuel-zkvm-primitives-utils/src/vm/contract.rs b/fuel-zkvm-primitives-utils/src/vm/contract.rs index 0900463..2c1cf69 100644 --- a/fuel-zkvm-primitives-utils/src/vm/contract.rs +++ b/fuel-zkvm-primitives-utils/src/vm/contract.rs @@ -134,7 +134,9 @@ static MINT_METADATA: OnceLock = OnceLock::new(); fn mint_metadata() -> &'static ContractInstructionMetadata { MINT_METADATA.get_or_init(|| { - ContractInstructionMetadata::default_with_bytecode(vec![op::mint(RegId::ONE, 10)]) + ContractInstructionMetadata::default_with_bytecode(u256_iterator_loop(|iterator| { + op::mint(RegId::ONE, iterator) + })) }) }