-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
offchainOffchain data sources, such as IPFS filesOffchain data sources, such as IPFS files
Description
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
let host_fns = data_source | |
.as_onchain() | |
.map(|ds| runtime_adapter.host_fns(ds)) | |
.transpose()? | |
.unwrap_or_default(); |
Metadata
Metadata
Assignees
Labels
offchainOffchain data sources, such as IPFS filesOffchain data sources, such as IPFS files