Skip to content

Commit 44869e6

Browse files
committed
fix: avoid requiring all executors for predecessors calculation
Signed-off-by: Pablo <pablo.estrada@smartcontract.com>
1 parent fdf66b3 commit 44869e6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/gentle-islands-cut.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@smartcontractkit/mcms": patch
3+
---
4+
5+
fix: avoid requiring all executors for converters generation

timelock_executable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ func (t *TimelockExecutable) setPredecessors(ctx context.Context) error {
262262
if len(t.predecessors) == 0 && len(t.executors) > 0 {
263263
var err error
264264
var converters = make(map[types.ChainSelector]sdk.TimelockConverter)
265-
for chainSelector := range t.executors {
265+
for chainSelector := range t.proposal.ChainMetadata {
266266
converters[chainSelector], err = newTimelockConverter(chainSelector)
267267
if err != nil {
268268
return fmt.Errorf("unable to create converter from executor: %w", err)

0 commit comments

Comments
 (0)