From 53e56f74ab8b6ee1d362498913743e2945ccb131 Mon Sep 17 00:00:00 2001 From: Lucas Bertrand Date: Fri, 19 Apr 2024 11:56:23 +0200 Subject: [PATCH 1/2] Fix the error in execution Replace error code duplicated to fix the execution error --- x/crosschain/types/errors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/crosschain/types/errors.go b/x/crosschain/types/errors.go index a633533f1c..edde41849d 100644 --- a/x/crosschain/types/errors.go +++ b/x/crosschain/types/errors.go @@ -42,6 +42,6 @@ var ( ErrUnableToFindZetaAccounting = errorsmod.Register(ModuleName, 1149, "unable to find zeta accounting") ErrInsufficientZetaAmount = errorsmod.Register(ModuleName, 1150, "insufficient zeta amount") ErrUnableToDecodeMessageString = errorsmod.Register(ModuleName, 1151, "unable to decode message string") - ErrInvalidRateLimiterFlags = errorsmod.Register(ModuleName, 1151, "invalid rate limiter flags") - ErrMaxTxOutTrackerHashesReached = errorsmod.Register(ModuleName, 1152, "max tx out tracker hashes reached") + ErrInvalidRateLimiterFlags = errorsmod.Register(ModuleName, 1152, "invalid rate limiter flags") + ErrMaxTxOutTrackerHashesReached = errorsmod.Register(ModuleName, 1153, "max tx out tracker hashes reached") ) From a426a9155b76ff57ea8857b7263bfadbb7d1a160 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Fri, 19 Apr 2024 10:05:35 -0400 Subject: [PATCH 2/2] Update testutil/contracts/Dapp.sol Co-authored-by: Lucas Bertrand --- testutil/contracts/Dapp.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/testutil/contracts/Dapp.sol b/testutil/contracts/Dapp.sol index 9020054ced..c8deef9e6b 100644 --- a/testutil/contracts/Dapp.sol +++ b/testutil/contracts/Dapp.sol @@ -45,6 +45,7 @@ interface ZetaInterfaces { bytes message; } } + // Dapp is a sample comtract that implements ZetaReceiver and is used for unit testing // It sets the values of the ZetaMessage struct to its public variables which can then be queried to check if the function was called correctly contract Dapp {