Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy solidity smart contract on wasp node using wasp-cli #3190

Open
yourina13 opened this issue Dec 17, 2023 · 3 comments
Open

Deploy solidity smart contract on wasp node using wasp-cli #3190

yourina13 opened this issue Dec 17, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@yourina13
Copy link

Describe the bug
I'm currently experimenting with deploying a Solidity smart contract on IOTA using the Wasp node and wasp-cli .
To Reproduce
I began by launching a Wasp node :
git clone https://github.com/iotaledger/wasp.git (v1.0.1-rc.4 )
cd wasp/tools/local-setup
docker-compose pull
docker volume create --name hornet-nest-db
docker volume create --name wasp-db
docker-compose up
and initiating a chain using
./wasp-cli init
./wasp-cli set l1.apiaddress http://localhost:14265
./wasp-cli set l1.faucetaddress http://localhost:8091
./wasp-cli wasp add wasp-0 localhost:9090
./wasp-cli request-funds
./wasp-cli chain deploy --chain=iotachain
. However, I've encountered a challenge in deploying my solidity smart contract on evm chain and jsonrpc..
I would greatly appreciate any guidance or assistance on this matter. Thank you

Expected behavior
deploy solidity smart contract on wasp node and hornet-nest

Screenshots
waspn
chain

Network and versioning

  • Type of L1 network: [hornet-nest]
  • Type of Wasp chain: [ Private chain]
  • Interaction method: [Wasp-cli]
  • Interaction software: [Metamask, wasp-cli, hardhat, API]
  • Version of Wasp [v1.0.1-rc.4] Version of wasp-cli [v1.0.1-rc.15]
@yourina13 yourina13 added the bug Something isn't working label Dec 17, 2023
@DiePutze5853
Copy link

You can only deploy wasm smart contracts with wasp-cli. For solidity contracts you can just use hardhat, remix or any of the other ethereum tooling capable of deploying to localhost.

@yourina13
Copy link
Author

Thanks for your response i thought i could use wasp-cli directly! actually I attempted to utilize Remix and Metamask for deploying my smart contract on the Wasp chain. I configured the metadata by adding the RPC JSON URL: http:/127.0.0.1:8545. using :./wasp-cli chain --chain=iotachain set-metadata --evm-rpc-url http://127.0.0.1:8545 , However, upon trying to connect Metamask to the new network and setting the chain ID (defaulted to 1074), I encountered an error: 'Impossible de récupérer l’ID de la chaîne!' Unfortunately, I couldn't establish the connection between my Wasp chain and Metamask. Is there something I might have missed? I would greatly appreciate any guidance as I'm a beginner navigating through IOTA...

@yourina13
Copy link
Author

By the way, my Wasp node seems to be running properly, but I'm unable to access the dashboard. I'm encountering this issue:
image
and this is my wasp and hornet-nest node running (l1 & l2):

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants