From 2c38bee631a5437ed07d06507d393d0624afa663 Mon Sep 17 00:00:00 2001 From: GopherDID <74898029+vmidyllic@users.noreply.github.com> Date: Fri, 5 Apr 2024 13:29:27 +0300 Subject: [PATCH] Update proof.go newer hardhat version changed error from `not found` to `not supported` --- eth/proof.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/proof.go b/eth/proof.go index 7d7eb03..e80fe83 100644 --- a/eth/proof.go +++ b/eth/proof.go @@ -247,7 +247,7 @@ func (cli *ReverseHashCli) suggestGasTipCap(ctx context.Context) (*big.Int, erro tip, err := cli.ethClient.SuggestGasTipCap(ctxRPC) // since hardhat doesn't support 'eth_maxPriorityFeePerGas' rpc call. // we should hard code 0 as a mainer tips. More information: https://github.com/NomicFoundation/hardhat/issues/1664#issuecomment-1149006010 - if err != nil && strings.Contains(err.Error(), "eth_maxPriorityFeePerGas not found") { + if err != nil && strings.Contains(err.Error(), "eth_maxPriorityFeePerGas") { log.Trace("failed get suggest gas tip. Use 0 instead", "err", err) tip = big.NewInt(0) } else if err != nil {