Gas estimation failed Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Invalid JSON RPC response:
trying to call mint
function.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityGas estimation failed Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Invalid JSON RPC response:
trying to call mint
function.
You are trying to call mint
function on Allocation smart contract, but it does not have such function. That's why your transaction is going to fail.
You probably need to call mint
on OPUCoin smart contract. This function may only be called by smart contract owner, and the owner of OPUCoin
smart contract is Allocation
smart contract, so you need to somehow make Allocation
smart contract to call mint
on OPUCoin
. There are several method in Allocation
smart contract that are able to call mint
on OPUToken
, e.g. allocate
, allocateIntoHolding
, finalizeHoldingAndTeamTokens
, optAddressIntoHolding
. You may try calling some of these methods.
Explanation
You have two smart contracts deployed: Allocation and OPUCoin and these smart contracts are mutually relative in many ways:
OPUCoin
smart contract was deployed by Allocation
smart contract.token
of Allocation
smart contract holds a reference to OPUCoin
smart contract.owner
of OPUCoint
smart contract holds a reference to Allocation
smart contract.Allocation
smart contract call functions of OPUCoin
smart contract.allocate
from address 0x54650daf32afbfe0fff592f249e0652e539749dc
(the only address authorized to call allocate
), but there is quite complicated logic inside and I'm not sure it will allow you to mint
any tokens.
Mar 26, 2019 at 8:13
Allocation
contract to call mint
on OPUCoin
contract. Whether it is possible or not depends on Allocation
smart contract logic.
Mar 27, 2019 at 16:45