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

contracts.UserRegistry.registerUser(..) and similar evocations should work #2

Closed
jellegerbrandy opened this issue Nov 30, 2017 · 0 comments

Comments

@jellegerbrandy
Copy link
Contributor

At the moment, contracts.UserRegistry` is the interface constructed from the ABI - so it has no error handling, each function call at most a single transaction, etc.

The idea is that userRegistry.registerUser first does some typechecking fo arguments, and then calls the ABI method on userRegistry.methods.registerUser(...).send() )

Concretely, the approach is that for each contract that is accessible from the Paratii object, there will be a js class that will extend the class created by web3.eth.Contract(ABISPECS).

For a first iteration we can do the minimum required for #1, and just map userRegistry.registerUser(...args) to userRegistry.method.registerUser(...args).send() directly

@jellegerbrandy jellegerbrandy changed the title contracts.UserRegistry.registerUser(..) and similar evocations should work #2 contracts.UserRegistry.registerUser(..) and similar evocations should work Nov 30, 2017
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

1 participant