Hi community,
I deployed this contract:
pragma solidity ^0.5.0;
import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Mintable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Pausable.sol";
contract FarmaCoin is ERC20Pausable, ERC20Burnable, ERC20Mintable, ERC20Detailed {
constructor () public ERC20Detailed("FarmaCoin", "FC", 2) { }
function transfer(address to, uint256 value) public returns (bool) {
return super.transfer(to, value); }
function transferFrom(address from, address to, uint256 value) public returns (bool) {
return super.transferFrom(from, to, value);
}
function approve(address spender, uint256 value) public returns (bool) {
return super.approve(spender, value);
}
function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
return super.increaseAllowance(spender, addedValue);
}
function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
return super.decreaseAllowance(spender, subtractedValue);
}
function burn(uint256 amount) public {
return super.burn(amount);
}
function burnFrom(address account, uint256 amount) public {
super.burnFrom(account, amount);
}
function mint(address account, uint256 amount) public returns (bool) {
return super.mint(account, amount);
}
}
Deployment goes fine, I use oz create
on a Quorum private blockchain.
Two issues after,when trying to interact with this contract:
- If I test
oz call
name, symbol and decimal returnn null values - If try to execute a transaction on this contract, for isntance calling mint() or addMinter() functions to start putting some tokens in circulation… or any other transactions on the contract I get this error:
Error while trying to send transaction to 0xbc89726802FF4C9dB5fA87be96a67444480F95aE. Error: Error: Returned error: gas required exceeds allowance or always failing transaction