Setup the test environment to allow imports of the EVM system contract.
Introduce a new CoreEvents contract, to expose event definition for core Flow & EVM events.
Examples:
import Test
import CoreEvents
access(all)
fun test() {
let account = Test.createAccount()
let typ = Type<CoreEvents.AccountCreated>()
let events = Test.eventsOfType(typ)
Test.expect(events.length, Test.beGreaterThan(1))
let accountCreatedEvent = events[0] as! CoreEvents.AccountCreated
Test.assertEqual(
Address(0x0000000000000006),
accountCreatedEvent.address
)
}
[x] Targeted PR against master branch
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
Description
EVM
system contract.CoreEvents
contract, to expose event definition for core Flow & EVM events.Examples:
master
branchFiles changed
in the Github PR explorer