`ls` command can't be invoked
Closed this issue · 1 comments
asymmetric commented
It seems like the ls
sub-command isn't being invoked.
If I omit the -u
argument, it asks for it:
❯ node build/index.js ls -s [omitted] -w wss://kusama.api.onfinality.io/public -e 8
Options:
--help Show help [boolean]
--version Show version number [boolean]
-w, --ws The API endpoint to connect to, e.g.
wss://kusama-rpc.polkadot.io [string] [required]
-S, --stashesFile Path to .json file containing an array of the stash
addresses to call payouts for. [string]
-s, --stashes Array of stash addresses to call payouts for. Required if
not using stashesFile. [array]
-u, --suriFile Path to .txt file containing private key seed.
[string] [required]
-e, --eraDepth How many eras prior to the last collected era to check for
uncollected payouts. [number] [default: 0]
Missing required argument: suriFile
If I pass it, it still tries to send payouts:
❯ node build/index.js ls -s [omitted] -w wss://kusama.api.onfinality.io/public -e 8 -u faf.txt
2021-06-11 19:51:10 [payouts] info: Sending tx:
{
"args": [
"[omitted]",
"2,333"
],
"method": "payoutStakers",
"section": "staking"
},{
"args": [
"[omitted]",
"2,334"
],
"method": "payoutStakers",
"section": "staking"
},{
"args": [
"[omitted]",
"2,335"
],
"method": "payoutStakers",
"section": "staking"
},{
"args": [
"[omitted]",
"2,336"
],
"method": "payoutStakers",
"section": "staking"
}
2021-06-11 19:51:10 RPC-CORE: submitExtrinsic(extrinsic: Extrinsic): Hash:: 1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low
2021-06-11 19:51:10 [payouts] error: Tx failed to sign and send
2021-06-11 19:51:10 [payouts] error: 1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low
2021-06-11 19:51:10 [payouts] info: Exiting ...
I'm on 1.2.0, commit 18d0633:
❯ node build/index.js --version
1.2.0
asymmetric commented
Turns out I was running an old version of the code. I thought the Docker build process would re-build the code, but that isn't the case.
Created #64 to address this.