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
e.Logger.Infof("EVMFeeContractResolver: src=%d using %s at %s (v%s) to resolve OnRamp for dst=%d", src, routerRef.Type, routerRef.Address, routerRef.Version.String(), dst)
return datastore.AddressRef{}, fmt.Errorf("failed to call Router.getOnRamp(dst=%d) on src %d at %s: %w", dst, src, routerRef.Address, err)
110
+
return datastore.AddressRef{}, fmt.Errorf("failed to call Router.GetOnRamp(dst=%d) on src %d at %s: %w", dst, src, routerRef.Address, err)
95
111
}
96
112
ifonRampAddr== (common.Address{}) {
97
-
return datastore.AddressRef{}, fmt.Errorf("Router.getOnRamp(dst=%d) on src %d returned the zero address (no live lane)", dst, src)
113
+
return datastore.AddressRef{}, fmt.Errorf("Router.GetOnRamp(dst=%d) on src %d at %s returned the zero address: %w", dst, src, routerRef.Address, feesapi.ErrNoLiveLane)
return datastore.AddressRef{}, fmt.Errorf("on-ramp address %s returned by Router.getOnRamp(dst=%d) on src %d is not present in the datastore: %w", onRampAddr.Hex(), dst, src, err)
120
+
return datastore.AddressRef{}, fmt.Errorf("OnRamp address %s returned by Router.GetOnRamp(dst=%d) on src %d is not present in the datastore: %w", onRampAddr.Hex(), dst, src, err)
105
121
}
106
122
ifonRampRef.Version==nil {
107
-
return datastore.AddressRef{}, fmt.Errorf("on-ramp at %s on src %d has no Version metadata in datastore", onRampAddr.Hex(), src)
123
+
return datastore.AddressRef{}, fmt.Errorf("OnRamp at %s on src %d has no Version metadata in datastore", onRampAddr.Hex(), src)
return datastore.AddressRef{}, fmt.Errorf("fee-contract address %s reported by OnRamp at %s on src %d is not present in the datastore: %w", feeContractAddr.Hex(), onRampAddr.Hex(), src, err)
163
+
return datastore.AddressRef{}, fmt.Errorf("FeeQuoter address %s reported by OnRamp at %s on src %d is not present in the datastore (filtered by Type=FeeQuoter): %w", feeContractAddr.Hex(), onRampAddr.Hex(), src, err)
164
+
}
165
+
iffeeRef.Version==nil {
166
+
return datastore.AddressRef{}, fmt.Errorf("FeeQuoter at %s on src %d (reported by OnRamp %s) has no Version metadata in datastore", feeContractAddr.Hex(), src, onRampAddr.Hex())
135
167
}
136
168
returnfeeRef, nil
137
169
}
138
170
171
+
// findRouterRef looks up the active Router for src in the datastore, falling
172
+
// back to TestRouter when the production Router is not registered. Production
173
+
// is preferred when both exist; this matches the broader codebase pattern of
174
+
// keeping Router and TestRouter as separate ContractTypes that callers select
175
+
// between explicitly (see v1_6_0/sequences/adapter.go GetRouter / GetTestRouter).
0 commit comments