Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 480 Bytes

File metadata and controls

24 lines (17 loc) · 480 Bytes

deal

Description

The deal cheatcode will set the ETH balance of address who to newBalance

Example

// Obtain our cheat code contract reference.
IStdCheats cheats = IStdCheats(0x7109709ECfa91a80626fF3989D68f67F5b1DD12D);

// Change value and verify.
address acc = address(777);
uint256 x = 1000 ether;
cheats.deal(acc, x);
assert(acc.balance == x);

Function Signature

function deal(address who, uint256 newBalance) external;