unknown import: ethereum::ethereum.call
has not been defined
#4309
Labels
offchain
Offchain data sources, such as IPFS files
Summary
This happens when a file data source handler uses contract calls directly or is in the same AssemblyScript file as other handlers which use contract calls. If the contract call is done by a different handler in the same file, this can be fixed by putting the file data source handler in its own file, which is best practice.
Potential Fix
Contract calls in file data source handlers could be enabled by somehow passing the
ethereum.call
host fn when instantiating an offchain data source, relevant code:graph-node/runtime/wasm/src/host.rs
Lines 137 to 141 in 92670f2
The text was updated successfully, but these errors were encountered: