Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: V2 Subscription Method Local testing using a Mock contract - revert the transaction #1951

Open
neocortexplus opened this issue May 16, 2024 · 0 comments
Assignees
Labels
bug Something isn't working in progress

Comments

@neocortexplus
Copy link

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

  1. Go to 'https://docs.chain.link/vrf/v2/subscription/examples/test-locally'
  2. Click on 'deploy both contract '
  3. 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

@neocortexplus neocortexplus added bug Something isn't working triage labels May 16, 2024
@neocortexplus neocortexplus changed the title [Bug]: <your-title-here> [Bug]: V2 Subscription Method Local testing using a Mock contract - revert the transaction May 16, 2024
@aelmanaa aelmanaa self-assigned this Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in progress
Projects
None yet
Development

No branches or pull requests

2 participants