-
Notifications
You must be signed in to change notification settings - Fork 79
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
cli: support NEP11-related commands #1918
Conversation
9fe9cb8
to
f53f414
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be nice to test properties
of course.
4e2e87b
to
f5789e4
Compare
pkg/rpc/client/nep11.go
Outdated
@@ -123,7 +123,7 @@ func (c *Client) TransferNEP11D(acc *wallet.Account, to util.Uint160, | |||
if err != nil { | |||
return util.Uint256{}, fmt.Errorf("bad account address: %w", err) | |||
} | |||
tx, err := c.createNEP11TransferTx(acc, tokenHash, gas, cosigners, acc.Address, from, to, amount, tokenID) | |||
tx, err := c.createNEP11TransferTx(acc, tokenHash, gas, cosigners, from, to, amount, tokenID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are TBD in #1940.
Codecov Report
@@ Coverage Diff @@
## master #1918 +/- ##
==========================================
- Coverage 82.92% 82.75% -0.17%
==========================================
Files 289 290 +1
Lines 22883 23355 +472
==========================================
+ Hits 18975 19328 +353
- Misses 2713 2797 +84
- Partials 1195 1230 +35
Continue to review full report at Codecov.
|
Four args should be specified: from, to, amount and tokenID.
It's unused.
We need to distinguish NEP11 and NEP17 tokens preesnted in the wallet.
These flags will be reused for NEP11 commands.
There's a case when cosigners are specified and data is not.
It'll be used from cli package.
Token name or hash can be used.
These are Tokens (optional), TokensOf and OwnerOf (divisible).
Close #1860, close #1864.
TODO:
balance
andtransfer
(something is wrong with transfer implementation or NFT example, investigating)