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

cli: allow to pass 'data' for nep17 transfer command #1906

Merged
merged 5 commits into from
Apr 19, 2021

Conversation

AnnaShaleva
Copy link
Member

@AnnaShaleva AnnaShaleva commented Apr 16, 2021

Close #1896.

Implemented only for single transfer, because multitransfer syntax doesn't allow to easily parse data for each token. However, we may add an ability to provide one common data parameter for all multitransfer tokens via the last argument.

It's a part of transfer, thus it should be passed along with the other
transfer parameters.
It'll help to convert Parameter to a atandard type which then can be
emitted ass an array item.
@codecov
Copy link

codecov bot commented Apr 16, 2021

Codecov Report

Merging #1906 (db868f0) into master (2bc5f72) will increase coverage by 0.22%.
The diff coverage is 76.92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1906      +/-   ##
==========================================
+ Coverage   82.81%   83.03%   +0.22%     
==========================================
  Files         287      287              
  Lines       22782    23118     +336     
==========================================
+ Hits        18866    19197     +331     
+ Misses       2721     2692      -29     
- Partials     1195     1229      +34     
Impacted Files Coverage Δ
cli/smartcontract/smart_contract.go 87.71% <63.15%> (+0.80%) ⬆️
pkg/rpc/client/nep17.go 52.77% <75.00%> (+0.14%) ⬆️
cli/wallet/nep17.go 78.72% <83.33%> (+4.90%) ⬆️
pkg/smartcontract/parameter.go 81.37% <86.66%> (+0.27%) ⬆️
pkg/vm/emit/emit.go 100.00% <100.00%> (ø)
pkg/network/server.go 70.94% <0.00%> (+0.14%) ⬆️
cli/wallet/wallet.go 73.66% <0.00%> (+2.13%) ⬆️
cli/wallet/validator.go 78.10% <0.00%> (+4.77%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2bc5f72...db868f0. Read the comment docs.

config/protocol.unit_testnet.single.yml Show resolved Hide resolved
cli/wallet/nep17.go Outdated Show resolved Hide resolved
cli/wallet/nep17.go Show resolved Hide resolved
@roman-khimov roman-khimov merged commit 8f14c61 into master Apr 19, 2021
@roman-khimov roman-khimov deleted the cli/transfer_param branch April 19, 2021 07:43
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

Successfully merging this pull request may close these issues.

Allow to provide additional data for transfers in CLI
2 participants