You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a hardhat forked avalanche network and am trying to send a simple approval transaction to the blob token. It is failing with the error:
{"jsonrpc":"2.0","id":44,"error":{"code":-32603,"message":"Error: VM Exception while processing transaction: invalid opcode","data":{"message":"Error: VM Exception while processing transaction: invalid opcode","txHash":"0xa2f2c330ec0d3cba23d6daaed95135f2d4c5f02e26aba0dbb6bab9fdec396ffc","data":"0x"}}}
I just tested this locally and it works as expected. I noticed a couple of minor issues in your sample code. You’re missing the await keyword on the second statement, and you’re using both fromAccount and from, which should hold the same value. Here’s the code I used for testing:
Version of Hardhat
2.22.6
What happened?
I have created a hardhat forked avalanche network and am trying to send a simple approval transaction to the blob token. It is failing with the error:
Minimal reproduction steps
Create a hardhat fork using the following config:
In your code try to send this transaction using impersonated signer:
Actual values used
Search terms
avalanche
The text was updated successfully, but these errors were encountered: