Skip to content

Commit b6427ea

Browse files
authored
Updated Mantle fatal error regex (#458)
1 parent 156addb commit b6427ea

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

pkg/client/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ var aStar = ClientErrors{
273273

274274
var mantle = ClientErrors{
275275
InsufficientEth: regexp.MustCompile(`(: |^)'*insufficient funds for gas \* price \+ value`),
276-
Fatal: regexp.MustCompile(`(: |^)'*invalid sender`),
276+
Fatal: regexp.MustCompile(`(: |^)'*(invalid sender|intrinsic gas too low|exceeds block gas limit)`),
277277
NonceTooLow: regexp.MustCompile(`(: |^)'*nonce too low`),
278278
ReplacementTransactionUnderpriced: regexp.MustCompile(`(: |^)'*replacement transaction underpriced`),
279279
TransactionAlreadyInMempool: regexp.MustCompile(`(: |^)'*already known`),

pkg/client/errors_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,8 @@ func Test_Eth_Errors_Fatal(t *testing.T) {
446446
{"Failed to serialize transaction: oversized data. max: 1000000; actual: 1000000", true, "zkSync"},
447447

448448
{"failed to forward tx to sequencer, please try again. Error message: 'invalid sender'", true, "Mantle"},
449+
{"failed to forward tx to sequencer, err: 'intrinsic gas too low: gas 5000000, minimum needed 93897576'", true, "Mantle"},
450+
{"failed to forward tx to sequencer, err: 'exceeds block gas limit'", true, "Mantle"},
449451

450452
{"client error fatal", true, "tomlConfig"},
451453
{"[Request ID: d9711488-4c1e-4af2-bc1f-7969913d7b60] Error invoking RPC: transaction 0.0.4425573@1718213476.914320044 failed precheck with status INVALID_SIGNATURE", true, "hedera"},

0 commit comments

Comments
 (0)