Error during deploy smart contract using forc wallet

Hi everything! Im trying deploy my smart contract using forc deploy --node-url http://beta-3.fuel.network/graphql --gas-price 1. I ran into this error

 Compiled library "core" with 6 warnings.
 Compiling library std (git+https://github.com/fuellabs/sway?tag=v0.40.1#48104d0bde0d343154a5bc39a310092532883235)
 Compiling contract counter-contract (/Users/master/fuel-counter-contract/counter-contract)
  Finished debug in 1.050089167s
  contract counter-contract
      Bytecode size: 1996 bytes
Contract id: 0x0a444a80aff1d8e31dc5f6a1af8c4e94cd9bca463cc25d03e4a1223a65bce0e8
Error: Response errors; Unknown field "messageReceiptCount" on type "Header".; Unknown field "messageReceiptRoot" on type "Header".; Unknown field "chainId" on type "ConsensusParameters".

My smart contract code:


contract;
use std::logging::log;
use std::auth::msg_sender;
struct IncrementParams {
    caller: Identity,
    counter: u64,
    timestamp: u64,
}

storage {
    counter: u64 = 0,
}

abi Counter {
    #[storage(read, write)]
    fn increment();

    #[storage(read)]
    fn count() -> u64;
}

impl Counter for Contract {
    #[storage(read)]
    fn count() -> u64 {
        storage.counter.try_read().unwrap_or(0)
    }

    #[storage(read, write)]
    fn increment() {
        let incremented = storage.counter.try_read().unwrap_or(0) + 1;
        storage.counter.write(incremented);
        log(IncrementParams {
            caller: msg_sender().unwrap(),
            counter: incremented,
            timestamp: std::block::timestamp(),
        });
    }
}

This is my toolchain:

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

installed toolchains
--------------------
beta-3-aarch64-apple-darwin
latest-aarch64-apple-darwin (default)

active toolchain
-----------------
latest-aarch64-apple-darwin (default)
  forc : 0.40.1
    - forc-client
      - forc-deploy : 0.40.1
      - forc-run : 0.40.1
    - forc-doc : 0.40.1
    - forc-explore : 0.28.1
    - forc-fmt : 0.40.1
    - forc-index : 0.16.1
    - forc-lsp : 0.40.1
    - forc-tx : 0.40.1
    - forc-wallet : 0.2.2
  fuel-core : 0.18.1
  fuel-indexer : 0.16.1

fuels versions
---------------
forc : 0.42
1 Like

To deploy to the beta-3 network you will need to set the beta-3 toolchain as your default with fuelup default beta-3.