fuel_vm::interpreter::contract

Function balance_increase

source
pub fn balance_increase<S>(
    storage: &mut S,
    contract: &ContractId,
    asset_id: &AssetId,
    amount: Word,
) -> IoResult<(Word, bool), S::Error>
Expand description

Increase the asset balance for a contract. Returns new balance, and a boolean indicating if a new entry was created.