RevertTransactionError "NotEnoughBalance" after update rust sdk to v0.46.0

RevertTransactionError “NotEnoughBalance” after update rust sdk to v0.46.0

Hi guys, I just updated my rust sdk in my src-20 sdk to the new 0.46.0 version but after update my test started to fail with that error

thread 'main_test' panicked at 'called `Result::unwrap()` on an `Err` value: RevertTransactionError { reason: "NotEnoughBalance", revert_id: 0, receipts: [Call { id: 0000000000000000000000000000000000000000000000000000000000000000, to: 737e09f09b4ebd272f6d2300e2e87304619d62d48cf298768e796634c92375fd, amount: 0, asset_id: 0000000000000000000000000000000000000000000000000000000000000000, gas: 99999834, param1: 1075379907, param2: 10472, pc: 11760, is: 11760 }, Mint { sub_id: 4f0b7977949c013b94ced7eb140d26954c6c689e366e275d7a892570e819381f, contract_id: 737e09f09b4ebd272f6d2300e2e87304619d62d48cf298768e796634c92375fd, val: 1000000000000, pc: 13696, is: 11760 }, Panic { id: 737e09f09b4ebd272f6d2300e2e87304619d62d48cf298768e796634c92375fd, reason: PanicInstruction { reason: NotEnoughBalance, instruction: 1027695889 }, pc: 14388, is: 11760, contract_id: None }, ScriptResult { result: Panic, gas_used: 1032 }] }', tests/harness.rs:29:10

Fuelup version

>>> fuelup show   
Default host: aarch64-apple-darwin
fuelup home: /Users/alexey/.fuelup

installed toolchains
--------------------
beta-3-aarch64-apple-darwin
latest-aarch64-apple-darwin (default)
hotfix
my-custom-toolchain

active toolchain
-----------------
latest-aarch64-apple-darwin (default)
  forc : 0.42.1
    - forc-client
      - forc-deploy : 0.42.1
      - forc-run : 0.42.1
    - forc-doc : 0.42.1
    - forc-explore : 0.28.1
    - forc-fmt : 0.42.1
    - forc-index : 0.19.5
    - forc-lsp : 0.42.1
    - forc-tx : 0.42.1
    - forc-wallet : 0.2.5
  fuel-core : 0.18.3
  fuel-indexer : 0.19.5

fuels versions
---------------
forc : 0.43
forc-wallet : 0.45

How to reproduce bug

fuelup update      
git clone https://github.com/compolabs/src-20.git
cd src-20
git checkout fuels-v0.46.0
cd contract && forc build && cd ..
cargo test --package src20_sdk --test tests -- main_test --exact --nocapture 
1 Like

That works with fuels v0.44

2 Likes

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.