Skip to content

Commit 95a8b16

Browse files
bysomeonevipwzw
authored andcommitted
add address format
1 parent dd53927 commit 95a8b16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

system/dapp/manage/executor/exec.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ func (c *Manage) Exec_Modify(manageAction *types.ModifyConfig, tx *types.Transac
2929
// 兼容在区块上没有To地址检查的交易数据
3030
types.AssertConfig(c.GetAPI())
3131
cfg := c.GetAPI().GetConfig()
32-
32+
if address.IsEthAddress(manageAction.Addr) && cfg.IsFork(c.GetHeight(), address.ForkEthAddressFormat) {
33+
manageAction.Addr = address.FormatEthAddress(manageAction.Addr)
34+
}
3335
confManager := types.ConfSub(cfg, mty.ManageX)
3436
autonomyExec := confManager.GStr(types.AutonomyCfgKey)
3537
if cfg.IsDappFork(c.GetHeight(), mty.ManageX, mty.ForkManageAutonomyEnable) && len(autonomyExec) > 0 {

0 commit comments

Comments
 (0)