You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lets make the upgrade handler code for chains to upgrade to support upon switching to IBC v3.1.0 a one-liner, that they import from the app-transfer module.
Problem Definition / Proposal
The code for the upgrade is currently including the following in your upgrade struct:
varnewTraces []ibctransfertypes.DenomTraceapp.TransferKeeper.IterateDenomTraces(ctx,
func(dt ibctransfertypes.DenomTrace) bool {
// check if the new way of splitting FullDenom// into Trace and BaseDenom passes validation and// is the same as the current DenomTrace.// If it isn't then store the new DenomTrace in the list of new traces.newTrace:=ibctransfertypes.ParseDenomTrace(dt.GetFullDenomPath())
iferr:=newTrace.Validate(); err==nil&&!equalTraces(newTrace, dt) {
newTraces=append(newTraces, newTrace)
}
returnfalse
})
// replace the outdated traces with the new trace informationfor_, nt:=rangenewTraces {
app.TransferKeeper.SetDenomTrace(ctx, nt)
}
for chains to all adopt this more quickly. This would save several lines from the upgrade. Or you could make this use migrations on the TransferKeeper directly. This would be preferrred, since then the upgrade would just be a go.mod update!
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged/assigned
The text was updated successfully, but these errors were encountered:
Summary
Lets make the upgrade handler code for chains to upgrade to support upon switching to IBC v3.1.0 a one-liner, that they import from the app-transfer module.
Problem Definition / Proposal
The code for the upgrade is currently including the following in your upgrade struct:
Seems to me that this would be better being:
for chains to all adopt this more quickly. This would save several lines from the upgrade. Or you could make this use migrations on the TransferKeeper directly. This would be preferrred, since then the upgrade would just be a go.mod update!
For Admin Use
The text was updated successfully, but these errors were encountered: