You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is about how to deploy a smart contract with its constructor's inputs using nim-web3.
Some thoughts:
The EthSend has a data field which embodies the compiled code of the contract, probably the constructor's parameters should be passed/encoded as part of the data field, like <smartcontract code><parameters of constructor> but couldn't find the encoding procedure in the nim-web3 repo.
I linked issue with similar thoughts. Also upstreamed this so Nimbus team is aware of issue, since it seems like this capability should ideally be provided by nim-web3 library. status-im/nim-web3#33
Problem
The problem is about how to deploy a smart contract with its constructor's inputs using nim-web3.
Some thoughts:
The
EthSend
has adata
field which embodies the compiled code of the contract, probably the constructor's parameters should be passed/encoded as part of thedata
field, like<smartcontract code><parameters of constructor>
but couldn't find the encoding procedure in the nim-web3 repo.See this file for a sample deployment of a contract: https://github.com/status-im/nim-web3/blob/master/tests/test_utils.nim
The text was updated successfully, but these errors were encountered: