Skip to content

Commit ee2c388

Browse files
committed
Add skip-simulation note
Signed-off-by: Luis Mastrangelo <luis@swirldslabs.com>
1 parent 29d9de8 commit ee2c388

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ Foundry allows you to run Solidity Scripts to interact with a remote network usi
189189
See [_Scripting with Solidity_](https://book.getfoundry.sh/guides/scripting-with-solidity) for more information on the topic.
190190

191191
To enable Foundry Scripts to work with HTS, you can use `htsSetup()` as described in the previous section.
192-
You can include
193192
For example
194193

195194
```solidity examples/foundry-hts/script/CreateToken.s.sol
@@ -258,6 +257,10 @@ previewnet = "https://previewnet.hashio.io/api"
258257
localnode = "http://localhost:7546"
259258
```
260259

260+
> [!IMPORTANT]
261+
> Make sure to include the `--skip-simulation` flag when running `forge script`.
262+
> Otherwise you will get [`EvmError: InvalidFEOpcode`](./FAQ.md#what-causes-the-error-evmerror-invalidfeopcode).
263+
261264
## Hardhat plugin
262265

263266
We provide a Hardhat plugin that enables fork testing when using HTS Tokens.

0 commit comments

Comments
 (0)