Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit 909ecdf

Browse files
matYangma33r
andcommitted
Add Mantle NonceTooLow Error (#14859) (#1505)
https://github.com/smartcontractkit/chainlink/pull/14859/files#diff-e9a4f21557894a9a2c77ca090bea14ed69bdfea02500c0cfd04628a1941f6e6c * handle mantle "nonce too low" error * add changeset ## Motivation ## Solution Co-authored-by: Matthew Romage <[email protected]>
1 parent a917e9a commit 909ecdf

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.changeset/pretty-worms-smell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"chainlink": patch
3+
---
4+
5+
Added a custom client error message for Mantle to capture NonceTooLow error. #added

core/chains/evm/client/errors.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ var aStar = ClientErrors{
257257
var mantle = ClientErrors{
258258
InsufficientEth: regexp.MustCompile(`(: |^)'*insufficient funds for gas \* price \+ value`),
259259
Fatal: regexp.MustCompile(`(: |^)'*invalid sender`),
260+
NonceTooLow: regexp.MustCompile(`(: |^)'*nonce too low`),
260261
}
261262

262263
var gnosis = ClientErrors{

core/chains/evm/client/errors_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ func Test_Eth_Errors(t *testing.T) {
4444
{"call failed: OldNonce, Current nonce: 22, nonce of rejected tx: 17", true, "Nethermind"},
4545
{"nonce too low. allowed nonce range: 427 - 447, actual: 426", true, "zkSync"},
4646
{"client error nonce too low", true, "tomlConfig"},
47+
{"failed to forward tx to sequencer, please try again. Error message: 'nonce too low'", true, "Mantle"},
4748
}
4849

4950
for _, test := range tests {

0 commit comments

Comments
 (0)