Open sqrlfirst opened 2 months ago
Hi @sqrlfirst, thanks for reporting this. We are aware of this situation. This happens when trying to use network forking with some of the Hedera native services, _e.g., Hedera Token Service. In this specific case, the issue arises because USDC at 0x000000000000000000000000000000000006f89a
is a Hedera Native Token. Hedera Native Tokens implement HIP-719
, which in turns calls the HTS at 0x0000000000000000000000000000000000000167
. However, the eth_getCode
for 0x0000000000000000000000000000000000000167
returns 0xfe
, hence the EvmError: InvalidEFOpcode
.
We are working on a solution, which in a nutshell involves emulating the HTS at a Solidity level. We estimate to have some results in the next weeks.
Description
I'm trying to run I'm trying to run mainnet fork test in foundry, however I'm getting following error while I try to execute
vm.deal
cheat code to mint erc20:Steps to reproduce
Example of test:
Additional context
No response
Hedera network
mainnet
Version
v0.1.0
Operating system
macOS