From fc81bb84086bbbb02dbca6e06b99f756fe58bc73 Mon Sep 17 00:00:00 2001 From: Command Date: Sun, 15 Nov 2020 10:19:01 +0800 Subject: [PATCH] fix logout --- bin/ngwallet.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/ngwallet.dart b/bin/ngwallet.dart index 04cc869..012c20c 100644 --- a/bin/ngwallet.dart +++ b/bin/ngwallet.dart @@ -300,11 +300,10 @@ class SendLogoutTxCMD extends JsonRpcCMD { @override void run() async { - var fee = checkEmpty(argResults['fee'], 'fee'); + var fee = argResults['fee']; var extra = argResults['extra']; - var logoutAccountNum = - checkEmpty(argResults.arguments[0], 'logoutAccountNum'); + var logoutAccountNum = await convener; var unsignedTx = await client.genLogout(logoutAccountNum, fee, extra); var signedTx = await client.signTx([await privateKey], unsignedTx);