Skip to content

Commit 3289612

Browse files
committed
Add lookup version for 1.6
1 parent 81356d0 commit 3289612

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deployment/fees/set_token_transfer_fee.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,11 @@ func makeApply(feeRegistry *FeeAdapterRegistry, mcmsRegistry *changesets.MCMSRea
120120
if err != nil {
121121
return cldf.ChangesetOutput{}, fmt.Errorf("failed to get fee contract ref for src %d and dst %d: %w", src.Selector, src.Settings[0].Selector, err)
122122
}
123-
updater, exists := feeRegistry.GetFeeAdapter(srcFamily, feeContractRef.Version)
123+
124+
v := feeContractRef.Version
125+
lookupVersion := semver.MustParse(fmt.Sprintf("%d.%d.0", v.Major(), v.Minor()))
126+
127+
updater, exists := feeRegistry.GetFeeAdapter(srcFamily, lookupVersion)
124128
if !exists {
125129
return cldf.ChangesetOutput{}, fmt.Errorf("no fee adapter found for chain family %s and version %s", srcFamily, feeContractRef.Version.String())
126130
}

0 commit comments

Comments
 (0)