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

How to set up a local testnet? #238

Open
AiDaiP opened this issue May 7, 2024 · 2 comments
Open

How to set up a local testnet? #238

AiDaiP opened this issue May 7, 2024 · 2 comments

Comments

@AiDaiP
Copy link

AiDaiP commented May 7, 2024

Hello, I want to set up a stylus local test network. I have successfully built a local test network using the stylus branch in nitro-testnode. However, I want to use the latest version of stylus, and the stylus branch in nitro-testnode has not been updated for a long time. The configuration file it generates will make the latest version stylus report an error and exit. I tried to use nitro-testnode in the stylus repository and it worked, but it seemed that stylus support was not turned on correctly.
In go-ethereum/params/config.go, IsStylus: c.IsArbitrum() && currentArbosVersion >= ArbosVersion_Stylus, where ArbosVersion_Stylus = 30, and in go-ethereum/params/config_arbitrum.go``" InitialArbOSVersion": 11, I tried changing 11 to 30, but it still doesn't work properly.
I use ./test-node.bash --init to start the local test network, and then use the latest version of cargo-stylus to deploy the helloword wasm smart contract generated by cargo-stylus new, which always returns "execution reverted".

Connecting to Stylus RPC endpoint: http://127.0.0.1:8547
Error: failed to deploy

Caused by:
    Stylus checks failed: program predeployment check failed when checking against ARB_WASM_ADDRESS 0000000000000000000000000000000000000071: (code: -32000, message: execution reverted, data: None)

Location:

What should I do to correctly set up the stylus local testnet?

@rollchad
Copy link

bump

@AdamRabbit
Copy link

I have encountered the same problem, please find a solution

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants