Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

allow to omit Value and To for a new transaction #84

Open
splix opened this issue Mar 20, 2018 · 0 comments
Open

allow to omit Value and To for a new transaction #84

splix opened this issue Mar 20, 2018 · 0 comments

Comments

@splix
Copy link
Contributor

splix commented Mar 20, 2018

Just:

emerald transaction   [--chain=<chain>] <from> <to> [--gas=<gas>] [--gas-price=<price>] [--data=<data>] (--nonce=<nonce> | --upstream=<upstream>)
emerald transaction   [--chain=<chain>] <from> [--gas=<gas>] [--gas-price=<price>] [--data=<data>] (--nonce=<nonce> | --upstream=<upstream>)

Use 0 if not passed. It's especially important for to parameter, because when a use wants to deploy a contract with current schema it need to figure out that zero-address (i.e. count all zeroes), it's error prone.

Also, it's better to make both parameters as named by default but keep full from-to-value as a shorthand:

emerald transaction   [--chain=<chain>] <from> [--to=<address>] [--value=<value>] [--gas=<gas>] [--gas-price=<price>] [--data=<data>] (--nonce=<nonce> | --upstream=<upstream>)
emerald transaction   [--chain=<chain>] <from> <to> <value> [--gas=<gas>] [--gas-price=<price>] [--data=<data>] (--nonce=<nonce> | --upstream=<upstream>)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants