You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add ERC20 version of deal cheatcode
added:
// Set the balance of an account for any ERC20 token
function deal(address token, address to, uint256 give) external;
// Alternative signature to update `totalSupply`
function deal(address token, address to, uint256 give, bool adjust) external;
* add ERC20 option of deal to book
added:
```solidity
function deal(address token, address to, uint256 give) external;
```
```solidity
function deal(address token, address to, uint256 give, bool adjust) external;
```
If the alternative signature of `deal` is used, then we can additionaly specify ERC20 token address, as well as an option to update `totalSupply`.
```solidity
address alice = address(1);
vm.deal(DAI, alice, 1 ether);
log_uint256(DAI.balanceOf(alice); // 1000000000000000000
```
* address(DAI)
0 commit comments