File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -443,8 +443,7 @@ async function stakeNeuron(stake: TokenAmountV2) {
443443 err ( `Cannot stake less than ${ error . minimumAmount } e8s` ) ;
444444 } else if ( error instanceof InsufficientFundsError ) {
445445 err (
446- `Your account has insufficient funds (${
447- ( error as InsufficientFundsError ) . balance
446+ `Your account has insufficient funds (${ ( error as InsufficientFundsError ) . balance
448447 } e8s)`
449448 ) ;
450449 } else {
@@ -819,8 +818,8 @@ function err(error: any) {
819818 error instanceof GovernanceError
820819 ? error . detail . error_message
821820 : error instanceof Error
822- ? error . message
823- : error ;
821+ ? error . message
822+ : error ;
824823 log ( `${ chalk . bold ( chalk . red ( "Error:" ) ) } ${ message } ` ) ;
825824}
826825
@@ -845,19 +844,19 @@ async function main() {
845844 . addCommand (
846845 new Command ( "transfer" )
847846 . description ( "Send tokens from the ICRC wallet to another account." )
848- . option (
847+ . requiredOption (
849848 "--canister-id <canister-id>" ,
850- "Canister ID (defaults to ICP Ledger) " ,
849+ "ICRC ledger Canister ID " ,
851850 tryParsePrincipal
852851 )
853852 . requiredOption (
854- "--to <account-identifier >" ,
853+ "--to <account>" ,
855854 "ICRC Account" ,
856855 tryParseIcrcAccount
857856 )
858857 . requiredOption (
859858 "--amount <amount>" ,
860- "Amount to transfer in e8s " ,
859+ "Amount to transfer in ledger's base unit " ,
861860 tryParseBigInt
862861 )
863862 . action ( ( { to, amount, canisterId } ) => {
You can’t perform that action at this time.
0 commit comments