Last active
August 20, 2021 14:04
-
-
Save axiomatic-aardvark/43232e718579d526a39caa418b87485d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { newMockEvent } from "matchstick-as/assembly/index"; | |
import { ethereum, Address } from "@graphprotocol/graph-ts"; | |
import { NewCustomEntity } from "../generated/MyDataSource/Example"; | |
let newEntityEvent = newMockEvent(new NewCustomEntity()) as NewCustomEntity; | |
// Read | |
let logType = newEntityEvent.logType; | |
// Write | |
let UPDATED_ADDRESS = "0xB16081F360e3847006dB660bae1c6d1b2e17eC2A"; | |
newEntityEvent.address = Address.fromString(UPDATED_ADDRESS); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment