Skip to main content
1 vote
Accepted

Create/set "subId" by createSubscription() and get "subId" vrfCoordinatorV2_5Mock calling by javascript in hardhat environment

Instead of events, it should be the logs array, inside the createSubIdReceipt object. So, replace this line: subscriptionId = createSubIdReceipt.events[0].args.subId with: subscriptionId = ...
SYED ASAD KAZMI's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible