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
This test fails I think because the celo token is a precompile. This issue is also present in Viem.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
import { Test } from "forge-std/Test.sol";
import { console2 } from "forge-std/console2.sol";
import { ERC20 } from "solmate/tokens/ERC20.sol";
contract CeloTest is Test {
ERC20 celo = ERC20(0x471EcE3750Da237f93B8E339c536989b8978a438);
// deal doesn't work in this case so use an address that already has some celo
address addr = 0x4117f8C086a0ECA19eA21dE0AE7C5087e3C359fb;
address recipient = makeAddr("");
function testCeloBalance() external {
vm.createSelectFork("celo");
uint256 balance = celo.balanceOf(addr);
vm.prank(addr);
celo.transfer(recipient, 1 ether);
assertEq(balance - 1 ether, celo.balanceOf(addr));
assertEq(1 ether, celo.balanceOf(recipient));
}
}
The text was updated successfully, but these errors were encountered:
This is known. We currently only support mainnet precompiles which are implemented in Revm, and there's no way to configure this in Foundry. See also #748.
Component
Forge, Anvil
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (df8ab09 2023-03-14T10:00:26.197329Z)
What command(s) is the bug in?
No response
Operating System
macOS (Apple Silicon)
Describe the bug
This test fails I think because the celo token is a precompile. This issue is also present in Viem.
The text was updated successfully, but these errors were encountered: