Skip to content

Commit 08266c4

Browse files
committed
nits
1 parent ef16bb7 commit 08266c4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pkg/types/ccipocr3/rmn_types.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package ccipocr3
22

3-
import "sort"
3+
import (
4+
"slices"
5+
)
46

57
// RMNReport is the payload that is signed by the RMN nodes, transmitted and verified onchain.
68
type RMNReport struct {
@@ -72,7 +74,7 @@ func (ci CurseInfo) NonCursedSourceChains(inputChains []ChainSelector) []ChainSe
7274
sourceChains = append(sourceChains, ch)
7375
}
7476
}
75-
sort.Slice(sourceChains, func(i, j int) bool { return sourceChains[i] < sourceChains[j] })
77+
slices.Sort(sourceChains)
7678

7779
return sourceChains
7880
}
@@ -82,10 +84,7 @@ func (ci CurseInfo) NonCursedSourceChains(inputChains []ChainSelector) []ChainSe
8284
// An active curse on this subject will cause isCursed() and isCursed(bytes16) to return true. Use this subject
8385
// for issues affecting all of CCIP chains, or pertaining to the chain that this contract is deployed on, instead of
8486
// using the local chain selector as a subject.
85-
var GlobalCurseSubject = [16]byte{
86-
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
87-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
88-
}
87+
var GlobalCurseSubject = [16]byte{0: 0x01, 15: 0x01}
8988

9089
// RemoteConfig contains the configuration fetched from the RMNRemote contract.
9190
type RemoteConfig struct {

0 commit comments

Comments
 (0)