sputnik-dao-contract
sputnik-dao-contract copied to clipboard
"ExecutionError":"Exceeded the prepaid gas."
Hello,
I'm trying to approve a transaction on a DAO :
View call: genesisdao.anank2.testnet.get_proposal({"id":9})
{
id: 9,
proposer: 'anank2.testnet',
description: 'Transfer NEAR from DAO to an account',
kind: {
Transfer: {
token_id: 'genesisdao.anank2.testnet',
receiver_id: 'anank3.testnet',
amount: '3',
msg: ''
}
},
status: 'InProgress',
vote_counts: { council: [ 1, 0, 0 ] },
votes: { 'anank1.testnet': 'Approve' },
submission_time: '1652962091452176838'
}
And when I call VoteApprove :
near call $DAO act_proposal '{"id":9, "action": "VoteApprove"}' --accountId marseille.testnet
I have :
Scheduling a call: genesisdao.anank2.testnet.act_proposal({"id":9, "action": "VoteApprove"})
Doing account.functionCall()
Receipt: 9T2bHfs945dACHCQb71NMuksgc1Gf2ZiKphLYFERofFL
Failure [genesisdao.anank2.testnet]: Error: {"index":0,"kind":{"ExecutionError":"Exceeded the prepaid gas."}}
Transaction Avg4gLhg5BEq7gEDXaPDTvMnB6ybHQep8MX6HfUufw4J had 30000000000000 of attached gas but used 2428017145162 of gas
View this transaction in explorer: https://explorer.testnet.near.org/transactions/Avg4gLhg5BEq7gEDXaPDTvMnB6ybHQep8MX6HfUufw4J
My account has enough funds and when I try to put --gas 10000000000000
, it's the same issue.
Account marseille.testnet
{
amount: '397598611707519656700000000',
block_hash: '5LnnmKMh8K6ik9KNGHyNyoyNeMVyX5UCM2XeUy6737W',
block_height: 90270476,
code_hash: 'EJjcf8Yqyp7So2q7uxidmWgmqLGghLTynJA9rxWfNSGN',
locked: '0',
storage_paid_at: 0,
storage_usage: 809118,
formattedAmount: '397.5986117075196567'
}
I see a new thing.
The problem with exceeded prepaid gas is not when we call add_proposal but when it must executes. And I can't add gas at this part. I have the same error second time for another dao
Receipt: Epf944T3PvHmiuQE1N6KLoqM8boGhcpeNxii3PAgdnB7
Failure [pointeuse.anank9.testnet]: Error: {"index":0,"kind":{"ExecutionError":"Exceeded the prepaid gas."}}