function deal(address who, uint256 newBalance) external;
Sets the balance of an address who
to newBalance
.
address alice = address(1);
vm.deal(alice, 1 ether);
log_uint256(alice.balance); // 1000000000000000000
Forge Standard Library
function deal(address who, uint256 newBalance) external;
Sets the balance of an address who
to newBalance
.
address alice = address(1);
vm.deal(alice, 1 ether);
log_uint256(alice.balance); // 1000000000000000000
Forge Standard Library