Skip to content

Commit 7795197

Browse files
committed
Fix Foundry file paths after moving them to into src/
Signed-off-by: Luis Mastrangelo <luis@swirldslabs.com>
1 parent 215c0c4 commit 7795197

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ and then invoke it in your [test setup](https://book.getfoundry.sh/forge/writing
8989
Now you can use Hedera Token Services and remote tokens as if they were deployed locally when fork testing.
9090
For example
9191

92-
```solidity examples/foundry-hts/USDC.t.sol
92+
```solidity examples/foundry-hts/src/USDC.t.sol
9393
// SPDX-License-Identifier: Apache-2.0
9494
pragma solidity ^0.8.0;
9595
9696
import {Test} from "forge-std/Test.sol";
97-
import {htsSetup} from "hedera-forking/contracts/htsSetup.sol";
98-
import {IERC20} from "hedera-forking/contracts/IERC20.sol";
99-
import {IHederaTokenService} from "hedera-forking/contracts/IHederaTokenService.sol";
100-
import {HederaResponseCodes} from "hedera-forking/contracts/HederaResponseCodes.sol";
97+
import {htsSetup} from "hedera-forking/htsSetup.sol";
98+
import {IERC20} from "hedera-forking/IERC20.sol";
99+
import {IHederaTokenService} from "hedera-forking/IHederaTokenService.sol";
100+
import {HederaResponseCodes} from "hedera-forking/HederaResponseCodes.sol";
101101
102102
contract USDCExampleTest is Test {
103103
// https://hashscan.io/mainnet/token/0.0.456858
@@ -148,13 +148,13 @@ forge test --fork-url https://mainnet.hashio.io/api --fork-block-number 72433403
148148

149149
You can use all the tools and cheatcodes Foundry provides, _e.g._, `console.log`
150150

151-
```solidity examples/foundry-hts/USDCConsole.t.sol
151+
```solidity examples/foundry-hts/src/USDCConsole.t.sol
152152
// SPDX-License-Identifier: Apache-2.0
153153
pragma solidity ^0.8.0;
154154
155155
import {Test, console} from "forge-std/Test.sol";
156-
import {htsSetup} from "hedera-forking/contracts/htsSetup.sol";
157-
import {IERC20} from "hedera-forking/contracts/IERC20.sol";
156+
import {htsSetup} from "hedera-forking/htsSetup.sol";
157+
import {IERC20} from "hedera-forking/IERC20.sol";
158158
159159
contract USDCConsoleExampleTest is Test {
160160
function setUp() external {
@@ -527,7 +527,7 @@ This allow us to ensure that all examples and tables are never outdated (if we c
527527
Code fences that contains a file name after the language definition, _e.g._,
528528

529529
````markdown
530-
```solidity examples/foundry-hts/USDC.t.sol
530+
```solidity examples/foundry-hts/src/USDC.t.sol
531531
```
532532
````
533533

0 commit comments

Comments
 (0)