Issues with deploying sample contract from tutorial

Going through the deployment section of the tutorial and having issues deploying.

forc deploy --url node-beta-2.fuel.network/graphql --gas-price 1 (on beta2)
forc-deploy --node-url https://node-beta-2.fuel.network/graphql --gas-price 1 (what I found for latest toolchain help)
Saw another help channel that i should use Beta-2 . ok cool
Then I go to sign off on with my wallet
forc wallet sign --account [the account index, without brackets] tx-id [Transaction id to sign, without brackets]

and I get this error:
error: Found argument ‘–account’ which wasn’t expected, or isn’t valid in this context

    If you tried to supply `--account` as a value rather than a flag, use `-- --account`

Ok, let me see if I try fuelup default latest
The command works and I get a signature - doesn’t work because I’m assuming different chains.

I tried switching back to beta-2 but get this error when I paste the signature:

request returned an error: error trying to connect: invalid URL, scheme is not http
Error: Custom { kind: Other, error: “Graphql error: HttpStream(hyper::Error(Connect, "invalid URL, scheme is not http"))” }

So in short, help

Details:
installed toolchains

beta-2-x86_64-unknown-linux-gnu
beta-3-x86_64-unknown-linux-gnu
latest-x86_64-unknown-linux-gnu (default)

active toolchain

latest-x86_64-unknown-linux-gnu (default)
forc : 0.35.5
- forc-client
- forc-deploy : 0.35.5
- forc-run : 0.35.5
- forc-doc : 0.35.5
- forc-explore : 0.28.1
- forc-fmt : 0.35.5
- forc-index : Error getting version string
- forc-lsp : 0.35.5
- forc-tx : 0.35.5
- forc-wallet : 0.2.1
fuel-core : 0.17.3
fuel-indexer : Error getting version string

I have moved from latest, to beta2 and beta3

1 Like

Hi,

I guess you are having a couple of problems at the same time so let’s break it down.

If you are deploying to beta-2 testnet you should be using that toolchain. I see that you tried that but failed to sign with forc-wallet. Since we recently had a breaking release of forc-wallet for beta3 network, we updated the quick start but I see that the example for the updated version was done in the beta-2 section instead of beta-3. We will be fixing that.

To give a TL;DR:

  1. Switch to beta-2 toolchain
  2. Follow the steps until signing in the quickstart, for signing disregard the quickstart for now and use this comment forc wallet sign --id <id> --account-index <account_index>

This will solve your first problem which is a documentation error on our end so sorry for the confusion!

Let’s come to the second problem that you are having/going to be having which is the following error message:

Error: Custom { kind: Other, error: “Graphql error: HttpStream(hyper::Error(Connect, "invalid URL, scheme is not http"))” }

To fix that, can you try to switch your url from https to http. Example: forc-deploy --node-url http://node-beta-2.fuel.network/graphql --gas-price 1

Finally a note: Making sure that using the correct version of the docs is important since you are not working with the latest release. I am linking the sway book’s correct version for beta-2 for your reference.

ran into a few issues trying to sign off my txid.
Issue i’m running into is on fuelup default latest
I can use forc-wallet account 0
I’ll get a return of the address I have registerd

on Beta-2
I can use forc-wallet account 0 or forc wallet account 0
Account 0 is not derived yet!

So it’s not detecting an account to sign

also the

forc wallet sign id --id 0x3edb96c23766b8504caaff042994efa18460e7ba27f60191394a6bcf5be8d7d8 --account-index 0

error: Found argument ‘0’ which wasn’t expected, or isn’t valid in this context

USAGE:
forc-wallet sign <ACCOUNT_INDEX> [PATH]

1 Like