Error building contract

Hi guys! I posted earlier my problem that I have never been able to solve on the same issue. Here are the links for your reference.

I can’t build the contract due to Fork version conflicts. How do I properly uninstall and then install the latest version of Fork?

Now i cant build another contract . You can try with the build contract following the instructions from this topic

I have these errors

My current toolchain

Default host: aarch64-apple-darwin
fuelup home: /Users/master/.fuelup

installed toolchains
--------------------
beta-3-aarch64-apple-darwin
beta-4-aarch64-apple-darwin
latest-aarch64-apple-darwin (default)
latest-2023-01-18-aarch64-apple-darwin
new-creation

active toolchain
----------------
latest-aarch64-apple-darwin (default)
  forc : 0.49.3
    - forc-client
      - forc-deploy : 0.49.3
      - forc-run : 0.49.3
    - forc-crypto : 0.49.3
    - forc-doc : 0.49.3
    - forc-explore : 0.28.1
    - forc-fmt : 0.49.3
    - forc-lsp : 0.49.3
    - forc-tx : 0.49.3
    - forc-wallet : 0.4.3
  fuel-core : 0.22.1
  fuel-core-keygen : 0.22.1

fuels versions
--------------
forc : 0.54.0
forc-wallet : 0.54.0

Let’s start by making sure you don’t have a dangling forc in your path that shadows the correct version.

You can use either:

  1. which forc
  2. whereis forc

This should report you a path where forc is installed. Mine returns something like:

/Users/USERNAME/.fuelup/bin/forc

If this is not pointing to forc inside fuelup that is your problem and you should remove that binary. An ususal suspect for these type of errors is installing forc via cargo, so check ~/.cargo/bin/ to see if it includes forc.

If this doesn’t help, can you share me a reproducible code that I can try on my own system to make sure your issue is due to tooling versioning.

which forc                                                                                            (*match-orders+32) 11:03:24 
/Users/master/.cargo/bin/forc

@kaya

1 Like

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