Skip to content

Commit

Permalink
Add more info log to upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
DarianShawn committed Sep 11, 2022
1 parent d225bd7 commit 0ee04b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/upgrader/upgrader.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ func applySystemContractUpgrade(upgrade *Upgrade, blockNumber uint64, txn *state
case UpgradeTypeRebalance:
for addr, balance := range cfg.Rebalancer {
txn.SetBalance(addr, balance)
logger.Info(fmt.Sprintf("%s upgrade set balance", upgrade.UpgradeName),
"addr", addr, "balance", balance)
}
case UpgradeTypeContract:
newContractCode, err := hex.DecodeHex(cfg.Code)
Expand Down

0 comments on commit 0ee04b9

Please sign in to comment.