fix: loading systemAddress

This commit is contained in:
Mohamed Sohail 2023-03-11 09:39:26 +00:00
parent 94f1f3bc2c
commit 8b14445c88
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D

View File

@ -9,10 +9,13 @@ import (
)
var (
systemAddress = ko.MustString("chain.system_address")
systemAddress string
)
func initAddressFilter() filter.Filter {
// TODO: Temporary shortcut
systemAddress = ko.MustString("chain.system_address")
// TODO: Bootstrap addresses from smart contract
// TODO: Add route to update cache
cache := &sync.Map{}
@ -24,7 +27,6 @@ func initAddressFilter() filter.Filter {
return filter.NewAddressFilter(filter.AddressFilterOpts{
Cache: cache,
Logg: lo,
// TODO: Temporary shortcut
SystemAddress: systemAddress,
})
}