From 2dd6ef964e47bf2af35462bfc8d8376b5fb33d5f Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 4 Aug 2020 10:35:47 +0300 Subject: [PATCH] cli: allow to transfer multiple tokens in `multitransfer` Like this: ./neogo wallet nep5 multitransfer -w wallet1_solo.json --from NVNvVRW5Q5naSx2k2iZm7xRgtRNGuZppAK -r http://127.0.0.1:30333 neo:NYqxsNMHxDg3T19APYP27mBZFfauC4zngR:2 neo:NVNvVRW5Q5naSx2k2iZm7xRgtRNGuZppAK:3 gas:NYqxsNMHxDg3T19APYP27mBZFfauC4zngR:2 --- cli/wallet/nep5.go | 52 +++++++++++++++++++++++------------------- pkg/rpc/client/nep5.go | 16 +++++++------ 2 files changed, 37 insertions(+), 31 deletions(-) diff --git a/cli/wallet/nep5.go b/cli/wallet/nep5.go index 67c3d0c11..51fa47600 100644 --- a/cli/wallet/nep5.go +++ b/cli/wallet/nep5.go @@ -71,7 +71,6 @@ func newNEP5Commands() []cli.Command { walletPathFlag, outFlag, fromAddrFlag, - tokenFlag, gasFlag, } multiTransferFlags = append(multiTransferFlags, options.RPC...) @@ -128,7 +127,7 @@ func newNEP5Commands() []cli.Command { Name: "multitransfer", Usage: "transfer NEP5 tokens to multiple recepients", UsageText: `multitransfer --wallet --rpc-endpoint --timeout