Closed rezowansifat closed 11 months ago
The problem is that you are using events
instead of logs
when you are reading the emitted events in 01-deploy-raffle.js
and it is undefined.
Try to change subscriptionId = transactionReceipt.events[0].args.subId
to susbcriptionId = transactionReceipt.logs[0].args.subId
Thank you, It was a success.
I'm not getting any event properties from transactionReceipt at 01_deploy-raffle.js while running "npx hardhat deploy".