Closed shreyas3336 closed 2 years ago
I'm trying to mock up an Event with definition as Info(name:string, creator:address, value:uint256)
Info(name:string, creator:address, value:uint256)
Entity Definition
type Project @entity { id: ID! creator: Bytes! value: BigInt! name: String! }
The ID for the entity is generated using the function
export function generateID(_name: string, _creator: string): string { return _name.concat("-CREATES-").concat(_creator); }
I'm not able to load this Entity into the matchStick framework using Project.load(generateID(name,creator), nor am I able to use asset.fieldEquals to check the sanity of the logic.
Project.load(generateID(name,creator)
asset.fieldEquals
Issue resolved in discord
I'm trying to mock up an Event with definition as
Info(name:string, creator:address, value:uint256)
Entity Definition
The ID for the entity is generated using the function
I'm not able to load this Entity into the matchStick framework using
Project.load(generateID(name,creator)
, nor am I able to useasset.fieldEquals
to check the sanity of the logic.