Skip to content

Commit

Permalink
metadium: fix bad block issue when gov is incomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
sadoci committed Oct 29, 2022
1 parent e9a6953 commit e18df77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metadium/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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())
Expand Down

0 comments on commit e18df77

Please sign in to comment.