From b05a06040a22b92d5082ab1994367f7330374166 Mon Sep 17 00:00:00 2001 From: zhangmenghang Date: Thu, 23 Feb 2023 15:52:12 +0800 Subject: [PATCH] update abi --- contracts/native/governance/node_manager/manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/native/governance/node_manager/manager.go b/contracts/native/governance/node_manager/manager.go index 529aebd0..045b9bb1 100644 --- a/contracts/native/governance/node_manager/manager.go +++ b/contracts/native/governance/node_manager/manager.go @@ -410,7 +410,7 @@ func Stake(s *native.NativeContract) ([]byte, error) { return nil, fmt.Errorf("Stake, setValidator error: %v", err) } - err = s.AddNotify(ABI, []string{STAKE_EVENT}, params.ConsensusAddress.Hex(), caller, value.String()) + err = s.AddNotify(ABI, []string{STAKE_EVENT}, params.ConsensusAddress.Hex(), caller.Hex(), value.String()) if err != nil { return nil, fmt.Errorf("Stake, AddNotify error: %v", err) } @@ -467,7 +467,7 @@ func UnStake(s *native.NativeContract) ([]byte, error) { } } - err = s.AddNotify(ABI, []string{UNSTAKE_EVENT}, params.ConsensusAddress.Hex(), caller, params.Amount.String()) + err = s.AddNotify(ABI, []string{UNSTAKE_EVENT}, params.ConsensusAddress.Hex(), caller.Hex(), params.Amount.String()) if err != nil { return nil, fmt.Errorf("UnStake, AddNotify error: %v", err) }