import { newMockEvent } from 'matchstick-as/assembly/index';
import { Deposited } from '../generated/Hub/Hub';
export function createNewDepositedEvent(): Deposited {
let mockEvent = newMockEvent();
let newDepositedEvent = new Deposited(
mockEvent.address,
mockEvent.logIndex,
mockEvent.transactionLogIndex,
mockEvent.logType,
mockEvent.block,
mockEvent.transaction,
mockEvent.parameters
);
return newDepositedEvent;
}
Throws:
Argument of type 'import("/xxxx/node_modules/@graphprotocol/graph-ts/common/numbers").Address' is not assignable to parameter of type 'import("/xxxx/node_modules/@graphprotocol/graph-ts/common/numbers").Address'.
Type 'ByteArray' is missing the following properties from type 'ByteArray': toI64, toU64ts(2345)
Probably due to the graph-ts mismatch. Since when fixing the address, then the logIndex throws same error.
Throws:
Probably due to the graph-ts mismatch. Since when fixing the address, then the
logIndex
throws same error.