tests: Use `DataSourceContext` class
-import { Entity, Address } from "@graphprotocol/graph-ts";
+import { DataSourceContext, Address } from "@graphprotocol/graph-ts";
import { Trigger } from "../generated/Contract/Contract";
import { Dynamic } from "../generated/templates";
export function handleTrigger(event: Trigger): void {
- let context = new Entity();
+ let context = new DataSourceContext();
context.setI32("answer", 42);
Dynamic.createWithContext(
Address.fromHexString(
