From a10bad4b027713f9e2ae29a68c04b3449d965ad4 Mon Sep 17 00:00:00 2001 From: Makram Kamaleddine Date: Tue, 9 Jul 2024 16:52:44 +0300 Subject: [PATCH] fix lint --- core/services/ocr3/plugins/ccipevm/msghasher.go | 2 +- core/services/ocr3/plugins/ccipevm/msghasher_test.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/services/ocr3/plugins/ccipevm/msghasher.go b/core/services/ocr3/plugins/ccipevm/msghasher.go index 7553475f6d..15483c822e 100644 --- a/core/services/ocr3/plugins/ccipevm/msghasher.go +++ b/core/services/ocr3/plugins/ccipevm/msghasher.go @@ -95,7 +95,7 @@ func (h *MessageHasherV1) Hash(_ context.Context, msg cciptypes.Message) (ccipty common.BytesToAddress(msg.Receiver), uint64(msg.Header.SequenceNumber), gasLimit, - uint64(msg.Header.Nonce), + msg.Header.Nonce, ) if err != nil { return [32]byte{}, fmt.Errorf("abi encode fixed size values: %w", err) diff --git a/core/services/ocr3/plugins/ccipevm/msghasher_test.go b/core/services/ocr3/plugins/ccipevm/msghasher_test.go index 286494ba69..ec856b4e9e 100644 --- a/core/services/ocr3/plugins/ccipevm/msghasher_test.go +++ b/core/services/ocr3/plugins/ccipevm/msghasher_test.go @@ -13,12 +13,13 @@ import ( "github.com/ethereum/go-ethereum/accounts/abi/bind/backends" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core" + "github.com/stretchr/testify/require" + cciptypes "github.com/smartcontractkit/chainlink-common/pkg/types/ccipocr3" "github.com/smartcontractkit/chainlink/v2/core/chains/evm/assets" "github.com/smartcontractkit/chainlink/v2/core/chains/evm/utils" "github.com/smartcontractkit/chainlink/v2/core/gethwrappers/ccip/generated/message_hasher" "github.com/smartcontractkit/chainlink/v2/core/internal/testutils" - "github.com/stretchr/testify/require" ) // NOTE: these test cases are only EVM <-> EVM.