Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Add a way to use a specified version of forc when running locally #271

Open
luizstacio opened this issue Jun 7, 2022 · 3 comments
Open
Labels
config Project infra or tooling priority:medium

Comments

@luizstacio
Copy link
Member

As a developer cloning the repo, I will normally run cargo install forc fuel-core or fuelup install this would result in getting the latest forc version, which could have breaking changes on the current contracts developed on the contract.

Today this is already a issue when trying to run this project with forc v0.15

@luizstacio luizstacio moved this to Todo in SwaySwap Jun 7, 2022
@luizstacio luizstacio added the config Project infra or tooling label Jun 7, 2022
@adlerjohn
Copy link
Contributor

Related: FuelLabs/fuelup#46 and FuelLabs/fuelup#65

@djma
Copy link

djma commented Dec 18, 2022

I believe I also ran into this when going through the services:setup.

...
Build ./packages/contracts/token_contract
  Compiled library "core".
  Compiled library "std".
  Compiled library "token_abi".
error
  --> /Users/davidma/crypto/swayswap/packages/contracts/swayswap_helpers/src/main.sw:17:19
   |
15 |
16 |         cfei i32;
17 |         srwq r2 r1;
   |                   ^ Expected an identifier.
18 |         r2: b256
19 |     }
   |
____

  Aborting due to 1 error.
Error: Failed to compile swayswap_helpers

I see srwq now has 4 parameters: https://github.com/FuelLabs/fuel-specs/blob/bca3cea8b3060b07229d7c6ccdd8fb6f554794d8/src/vm/instruction_set.md#srwq-state-read-sequential-32-byte-slots

Looks like this is almost unblocked by FuelLabs/fuelup#317

@spiral-ladder
Copy link

@djma The linked PR FuelLabs/fuelup#317 directly fixes the issue, but would custom toolchains help you in this case? You have to do a bit of manual setup though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
config Project infra or tooling priority:medium
Projects
Status: Todo
Development

No branches or pull requests

4 participants