当分叉主网时,我有时会看到这个错误:
我再次尝试发送后它就消失了:
[Error: The response reported error `429`: `Your app has exceeded its compute units per second capacity. If you have retries enabled, you can safely ignore this message. If not, check out https://docs.alchemy.com/reference/throughput`. (optional data: None). Request: [{"id":8,"jsonrpc":"2.0","method":"eth_getBalance","params":["0x90f79bf6eb2c4f870365e785982e1f101e93b906","0x12bb9c5"]},{"id":9,"jsonrpc":"2.0","method":"eth_getTransactionCount","params":["0x90f79bf6eb2c4f870365e785982e1f101e93b906","0x12bb9c5"]},{"id":10,"jsonrpc":"2.0","method":"eth_getCode","params":["0x90f79bf6eb2c4f870365e785982e1f101e93b906","0x12bb9c5"]}]] {
code: 'GenericFailure'
}
似乎是安全帽最近引入的一个错误。
降级为
"hardhat": "2.21"
似乎修复了它