0

Im following the "create a contract" part in the tutorial of Pyth Network (https://docs.pyth.network/price-feeds/create-your-first-pyth-app/evm/part-1) and i have this error in the import. Does anyone knows what can it be ? im using the last version of Juan Blanco extension of Solidity.

Inside remappings.txt i have: @pythnetwork/pyth-sdk-solidity/=node_modules/@pythnetwork/pyth-sdk-solidity

enter image description here

Error: Source "@pythnetwork/pyth-sdk-solidity/IPyth.sol" not found: File import callback not supported(6275)

I already tried changing the default workspace compiler but it didn't work.

1 Answer 1

0

Instead of using remappings.txt, add this line to your foundry.toml file:

remappings = [
    "@pythnetwork/pyth-sdk-solidity/=node_modules/@pythnetwork/pyth-sdk-solidity"
]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.