Skip to content

Commit

Permalink
add address format
Browse files Browse the repository at this point in the history
  • Loading branch information
bysomeone committed Apr 11, 2024
1 parent cbce023 commit da9b996
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/dapp/manage/executor/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ func (c *Manage) Exec_Modify(manageAction *types.ModifyConfig, tx *types.Transac
// 兼容在区块上没有To地址检查的交易数据
types.AssertConfig(c.GetAPI())
cfg := c.GetAPI().GetConfig()

if address.IsEthAddress(manageAction.Addr) && cfg.IsFork(c.GetHeight(), address.ForkEthAddressFormat) {
manageAction.Addr = address.FormatEthAddress(manageAction.Addr)
}
confManager := types.ConfSub(cfg, mty.ManageX)
autonomyExec := confManager.GStr(types.AutonomyCfgKey)
if cfg.IsDappFork(c.GetHeight(), mty.ManageX, mty.ForkManageAutonomyEnable) && len(autonomyExec) > 0 {
Expand Down

0 comments on commit da9b996

Please sign in to comment.