[Bug]: V2 Subscription Method Local testing using a Mock contract - revert the transaction
Opened this issue · 0 comments
Describe the bug
When I tried to deploy the mock contract based on the tutorial at https://docs.chain.link/vrf/v2/subscription/examples/test-locally, it resulted in my transaction being reverted.
To Reproduce
- Go to 'https://docs.chain.link/vrf/v2/subscription/examples/test-locally'
- Click on 'deploy both contract '
- See error :
[vm]from: 0x5B3...eddC4to: RandomNumberConsumerV2.requestRandomWords() 0xf8e...9fBe8value: 0 weidata: 0xe0c...86289logs: 0hash: 0xabf...52f88
status 0x0 Transaction mined but execution failed
transaction hash 0xabf401e7bd296b1dbf84e024fbae6af58fbb4ffc06ad5c9a047e7e874e252f88
block hash 0x203a4ded518503050b091bc81504b692ab7d5fa4978c0b8f39638dce50867da3
block number 4
from 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4
to RandomNumberConsumerV2.requestRandomWords() 0xf8e81D47203A594245E36C48e151709F0C19fBe8
gas 3000000 gas
transaction cost 26834 gas
execution cost 5770 gas
input 0xe0c...86289
decoded input {}
decoded output {}
logs []
transact to RandomNumberConsumerV2.requestRandomWords errored: Error occurred: revert.
revert
The transaction has been reverted to the initial state.
Note: The called function should be payable if you send value and the value you send should be less than your current balance.
You may want to cautiously increase the gas limit if the transaction went out of gas.
URLs
Expected behavior
it should return successful transaction not revert the transaction
Additional context
No response