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

Handling inputs to a smart contract constructor using nim-web3 #323

Closed
staheri14 opened this issue Dec 18, 2020 · 1 comment
Closed

Handling inputs to a smart contract constructor using nim-web3 #323

staheri14 opened this issue Dec 18, 2020 · 1 comment
Assignees

Comments

@staheri14
Copy link
Contributor

Problem

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.

See this file for a sample deployment of a contract: https://github.com/status-im/nim-web3/blob/master/tests/test_utils.nim

@oskarth
Copy link
Contributor

oskarth commented Dec 19, 2020

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

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

No branches or pull requests

2 participants