hopr_chain_types::utils

Function mint_tokens

Source
pub async fn mint_tokens<M: Middleware + 'static>(
    hopr_token: HoprToken<M>,
    amount: U256,
) -> u64
Expand description

Mints specified amount of HOPR tokens to the contract deployer wallet. Assumes that the hopr_token contract is associated with a RPC client that also deployed the contract. Returns the block number at which the minting transaction was confirmed.