Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

set_balance

Sets the balance of token`` for target`` contract to new_balance

  • target - address of the contract, which balance you want to modify
  • new_balance - new balance value
  • token - token for which the balance is being set

Fully qualified path: snforge_std::cheatcodes::erc20::set_balance

pub fn set_balance(target: ContractAddress, new_balance: u256, token: Token)