Skip to content

Commit

Permalink
Merge pull request #114 from siovanus/master
Browse files Browse the repository at this point in the history
update abi
  • Loading branch information
dylenfu authored Feb 23, 2023
2 parents 4f1a913 + b05a060 commit 16c24b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/native/governance/node_manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 16c24b1

Please sign in to comment.