Skip to content

Commit 8bc7613

Browse files
committed
Merge branch 'andrius/relay-upgrade-2' into 'main'
Support Relay upgrade on Songbird and Coston See merge request flarenetwork/flare-system-client!47
2 parents 6c56549 + 42b7838 commit 8bc7613

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

client/finalizer/relay_utils.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,21 @@ func (r *relayContractClient) FetchSigningPolicies(db finalizerDB, from, to int6
106106

107107
// If using new Songbird Relay, query the old one as well.
108108
// Note: this won't have any effect on other networks as we currently have unique Relay addresses for each network.
109-
if r.address == common.HexToAddress("0x0D462d2Fec11554D64F52D7c5A5C269d748037aD") {
109+
if r.address == common.HexToAddress("0x67a916E175a2aF01369294739AA60dDdE1Fad189") {
110110
logsOld, err := db.FetchLogsByAddressAndTopic0(common.HexToAddress("0xbA35e39D01A3f5710d1e43FC61dbb738B68641c4"), r.topic0SPI, from, to)
111111
if err != nil {
112112
return nil, err
113113
}
114114
allLogs = append(allLogs, logsOld...)
115115
}
116+
// If using new Coston Relay, query the old one as well.
117+
if r.address == common.HexToAddress("0x92a6E1127262106611e1e129BB64B6D8654273F7") {
118+
logsOld, err := db.FetchLogsByAddressAndTopic0(common.HexToAddress("0xA300E71257547e645CD7241987D3B75f2012E0E3"), r.topic0SPI, from, to)
119+
if err != nil {
120+
return nil, err
121+
}
122+
allLogs = append(allLogs, logsOld...)
123+
}
116124
// END TEMP CHANGE
117125

118126
logs, err := db.FetchLogsByAddressAndTopic0(r.address, r.topic0SPI, from, to)

0 commit comments

Comments
 (0)