Skip to content

Commit

Permalink
fix(account transfer): remove unimplemented excludeFee option
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Jan 28, 2022
1 parent 4c4d215 commit cddbbe9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/actions/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ export async function spend (walletPath, receiverNameOrAddress, amount, options)
// ## `Transfer` function
// this function allow you to `send` % of balance to another `account`
export async function transferFunds (walletPath, receiver, percentage, options) {
const { ttl, json, nonce, fee, payload = '', excludeFee } = options
const { ttl, json, nonce, fee, payload = '' } = options
percentage = parseFloat(percentage)
checkPref(receiver, HASH_TYPES.account)
// Get `keyPair` by `walletPath`, decrypt using password and initialize `Ae` client with this `keyPair`
const client = await initClientByWalletFile(walletPath, options)

let tx = await client.transferFunds(percentage, receiver, { ttl, nonce, payload, fee, excludeFee })
let tx = await client.transferFunds(percentage, receiver, { ttl, nonce, payload, fee })
// if waitMined false
if (typeof tx !== 'object') {
tx = await client.tx(tx)
Expand Down
1 change: 0 additions & 1 deletion src/commands/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export default function () {
// Example: `aecli account transfer ./myWalletKeyFile ak_1241rioefwj23f2wfdsfsdsdfsasdf 0.5 --password testpassword --ttl 20` --> this tx will leave for 20 blocks
program
.command('transfer <wallet_path> <receiver> <percentage>')
.option('--excludeFee', 'Exclude fee from amount')
.option('--networkId [networkId]', 'Network id (default: ae_mainnet)')
.option('--payload [payload]', 'Transaction payload.', '')
.option('-F, --fee [fee]', 'Spend transaction fee.')
Expand Down

0 comments on commit cddbbe9

Please sign in to comment.