near / stakewars-iii

Stake Wars: Episode 3 challenges and place to report issues
87 stars 177 forks source link

Ping error - operation cost #85

Closed MikhailRadusha closed 2 years ago

MikhailRadusha commented 2 years ago

Ping does not go through with error of not enough balance though I have balance on my account

near call stingray.factory.shardnet.near ping '{}' --accountId stingray.shardnet.near --gas=300000000000000
Scheduling a call: stingray.factory.shardnet.near.ping({})
Doing account.functionCall()
ServerError: Sender stingray.shardnet.near does not have enough balance 26.026831465460946155827066 for operation costing 37.854480396494967545665848
    at Object.parseRpcError (/usr/lib/node_modules/near-cli/node_modules/near-api-js/lib/utils/rpc_errors.js:24:19)
    at /usr/lib/node_modules/near-cli/node_modules/near-api-js/lib/providers/json-rpc-provider.js:319:44
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.exponentialBackoff [as default] (/usr/lib/node_modules/near-cli/node_modules/near-api-js/lib/utils/exponential-backoff.js:7:24)
    at async JsonRpcProvider.sendJsonRpc (/usr/lib/node_modules/near-cli/node_modules/near-api-js/lib/providers/json-rpc-provider.js:304:26)
    at async /usr/lib/node_modules/near-cli/node_modules/near-api-js/lib/account.js:121:24
    at async Object.exponentialBackoff [as default] (/usr/lib/node_modules/near-cli/node_modules/near-api-js/lib/utils/exponential-backoff.js:7:24)
    at async Account.signAndSendTransactionV2 (/usr/lib/node_modules/near-cli/node_modules/near-api-js/lib/account.js:117:24)
    at async scheduleFunctionCall (/usr/lib/node_modules/near-cli/commands/call.js:57:38)
    at async Object.handler (/usr/lib/node_modules/near-cli/utils/exit-on-error.js:52:9) {
  type: 'NotEnoughBalance',
  context: ErrorContext {
    transactionHash: 'BNiXN3vgcVAHzSBW3mEAukuEHrEF4efYm7FiSwJmNc5r'
  },
  balance: '26026831465460946155827066',
  cost: '37854480396494967545665848',
  signer_id: 'stingray.shardnet.near',
  kind: {
    balance: '26026831465460946155827066',
    cost: '37854480396494967545665848',
    signer_id: 'stingray.shardnet.near'
  }
}

image

Huagiang commented 2 years ago

me too

joesixpack commented 2 years ago

Same here. Also see this:

j@vulpecula:~$ ./near-ping.sh Scheduling a call: ou812.factory.shardnet.near.ping({}) Doing account.functionCall() ServerError: The account wouldn't have enough balance to cover storage, required to have 1771328530625326807635663 yoctoNEAR more at Object.parseRpcError (/home/j/.npm-global/lib/node_modules/near-cli/node_modules/near-api-js/lib/utils/rpc_errors.js:24:19) at /home/j/.npm-global/lib/node_modules/near-cli/node_modules/near-api-js/lib/providers/json-rpc-provider.js:319:44 at processTicksAndRejections (internal/process/task_queues.js:95:5) at async Object.exponentialBackoff [as default] (/home/j/.npm-global/lib/node_modules/near-cli/node_modules/near-api-js/lib/utils/exponential-backoff.js:7:24) at async JsonRpcProvider.sendJsonRpc (/home/j/.npm-global/lib/node_modules/near-cli/node_modules/near-api-js/lib/providers/json-rpc-provider.js:304:26) at async /home/j/.npm-global/lib/node_modules/near-cli/node_modules/near-api-js/lib/account.js:121:24 at async Object.exponentialBackoff [as default] (/home/j/.npm-global/lib/node_modules/near-cli/node_modules/near-api-js/lib/utils/exponential-backoff.js:7:24) at async Account.signAndSendTransactionV2 (/home/j/.npm-global/lib/node_modules/near-cli/node_modules/near-api-js/lib/account.js:117:24) at async scheduleFunctionCall (/home/j/.npm-global/lib/node_modules/near-cli/commands/call.js:57:38) at async Object.handler (/home/j/.npm-global/lib/node_modules/near-cli/utils/exit-on-error.js:52:9) { type: 'LackBalanceForState', context: ErrorContext { transactionHash: 'CXZPPU8A1ErF6u7UQZG7cdnm1hoBk7UzoW93kyitAwLL' }, account_id: undefined, amount: '1771328530625326807635663', kind: { amount: '1771328530625326807635663', signer_id: 'ou812.shardnet.near' } }

DDeAlmeida commented 2 years ago

Ping cost is now fixed Closing