Skip to content

Latest commit

 

History

History
227 lines (206 loc) · 6.82 KB

MockCxTokenPolicy.md

File metadata and controls

227 lines (206 loc) · 6.82 KB

MockCxTokenPolicy.sol

View Source: contracts/mock/cx-token/MockCxTokenPolicy.sol

MockCxTokenPolicy

Contract Members

Constants & Variables

contract ICxToken public cxToken;

Functions

function (ICxToken _cxToken) public nonpayable

Arguments

Name Type Description
_cxToken ICxToken
Source Code
constructor(ICxToken _cxToken) {
    cxToken = _cxToken;
  }

callMint

function callMint(bytes32 key, bytes32 productKey, address to, uint256 amount) external nonpayable

Arguments

Name Type Description
key bytes32
productKey bytes32
to address
amount uint256
Source Code
function callMint(
    bytes32 key,
    bytes32 productKey,
    address to,
    uint256 amount
  ) external {
    cxToken.mint(1, key, productKey, to, amount);
  }

Contracts