From e18df778b33d7328441c56cd874b6c7e708b1d59 Mon Sep 17 00:00:00 2001 From: Uh Sado Date: Sat, 29 Oct 2022 04:44:13 +0000 Subject: [PATCH] metadium: fix bad block issue when gov is incomplete --- metadium/admin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metadium/admin.go b/metadium/admin.go index 17401427ea76..70260d1046c3 100644 --- a/metadium/admin.go +++ b/metadium/admin.go @@ -357,7 +357,7 @@ func (ma *metaAdmin) getRewardAccounts(ctx context.Context, block *big.Int) (rew input = []interface{}{metclient.ToBytes32("RewardPool")} err = metclient.CallContract(ctx, ma.registry, "getContractAddress", input, &addr, block) if err != nil { - return + rewardPoolAccount = nil } else { rewardPoolAccount = &common.Address{} rewardPoolAccount.SetBytes(addr.Bytes()) @@ -366,7 +366,7 @@ func (ma *metaAdmin) getRewardAccounts(ctx context.Context, block *big.Int) (rew input = []interface{}{metclient.ToBytes32("Maintenance")} err = metclient.CallContract(ctx, ma.registry, "getContractAddress", input, &addr, block) if err != nil { - return + maintenanceAccount = nil } else { maintenanceAccount = &common.Address{} maintenanceAccount.SetBytes(addr.Bytes())