[Fix] Smart contract errors references (#721)

* update for smart-contract-errors.toml

* remove ref to deprecated errors in coordinator

* update bridge-ui abi
This commit is contained in:
kyzooghost
2025-02-27 20:11:02 +11:00
committed by GitHub
parent e4e4a186ac
commit 086c861f0b
5 changed files with 541 additions and 1743 deletions

File diff suppressed because one or more lines are too long

View File

@@ -7,11 +7,7 @@
# L1 Linea Rollup
"0f06cd15" = "DataAlreadySubmitted"
"c01eab56" = "EmptySubmissionData"
"abefa5e8" = "DataStartingBlockDoesNotMatch"
"5548c6b3" = "DataParentHasEmptyShnarf"
"36459fa0" = "L1RollingHashDoesNotExistOnL1"
"cbbd7953" = "FirstBlockGreaterThanFinalBlock"
"a386ed70" = "FirstBlockLessThanOrEqualToLastFinalizedBlock"
"70614405" = "FinalBlockNumberLessThanOrEqualToLastFinalizedBlock"
"2898482a" = "FinalBlockStateEqualsZeroHash"
"bf81c6e0" = "FinalizationInTheFuture"
@@ -22,13 +18,9 @@
"68dcad5f" = "PointEvaluationResponseInvalid"
"f75db381" = "PrecompileReturnDataLengthWrong"
"a71194af" = "PointEvaluationFailed"
"2f22b98a" = "LastFinalizedShnarfWrong"
"7dc2487d" = "SnarkHashIsZeroHash"
"bc5aad11" = "FinalizationStateIncorrect"
"b1504a5f" = "BlobSubmissionDataIsMissing"
"c0e41e1d" = "EmptyBlobDataAtIndex"
"fb4cd6ef" = "FinalBlockDoesNotMatchShnarfFinalBlock"
"2526F108" = "ShnarfAndFinalBlockNumberLengthsMismatched"
"d3664fb3" = "FinalShnarfWrong"
"4e686675" = "L2MerkleRootDoesNotExist"
"e5d14425" = "L2MerkleRootAlreadyAnchored"
@@ -37,13 +29,14 @@
"7907d79b" = "ProofIsEmpty"
"69ed70ab" = "InvalidProofType"
"09bde339" = "InvalidProof"
"db246dde" = "IsPaused"
"b015579f" = "IsNotPaused"
"3b174434" = "MessageHashesListLengthHigherThanOneHundred"
"c0a71b58" = "IsPaused"
"18659654" = "IsNotPaused"
"ca389c44" = "InvalidProofOrProofVerificationRanOutOfGas"
"42ab979d" = "ParentBlobNotSubmitted"
"6e5424c2" = "ParentBlobNotSubmitted"
"edeae83c" = "FinalBlobNotSubmitted"
# L2 Message Service
"3b174434" = "MessageHashesListLengthHigherThanOneHundred"
"6446cc9c" = "MessageHashesListLengthIsZero"
"d39e75f9" = "L1MessageNumberSynchronizationWrong"
"7557a60a" = "L1RollingHashSynchronizationWrong"

View File

@@ -587,7 +587,7 @@ describe("Linea Rollup contract", () => {
await expectRevertWithCustomError(lineaRollup, submitDataCall, "DataAlreadySubmitted", [expectedShnarf]);
});
it("Should revert with SnarkHashIsZeroHash when snarkHash is zero hash", async () => {
it("Should revert when snarkHash is zero hash", async () => {
const submissionData: CalldataSubmissionData = {
...DATA_ONE,
snarkHash: HASH_ZERO,
@@ -852,7 +852,7 @@ describe("Linea Rollup contract", () => {
);
});
it("Should revert with SnarkHashIsZeroHash when snarkHash is zero hash", async () => {
it("Should revert when snarkHash is zero hash", async () => {
const operatorHDSigner = getWalletForIndex(2);
const lineaRollupAddress = await lineaRollup.getAddress();

View File

@@ -45,8 +45,7 @@ class CoordinatorConfigTest {
_smartContractErrors = mapOf(
// L1 Linea Rollup
"0f06cd15" to "DataAlreadySubmitted",
"c01eab56" to "EmptySubmissionData",
"abefa5e8" to "DataStartingBlockDoesNotMatch"
"c01eab56" to "EmptySubmissionData"
),
fetchBlocksLimit = 4000
)

View File

@@ -7,4 +7,3 @@
# L1 Linea Rollup
"0f06cd15" = "DataAlreadySubmitted"
"c01eab56" = "EmptySubmissionData"
"abefa5e8" = "DataStartingBlockDoesNotMatch"