Skip to content

Commit

Permalink
fix: change WhitelistERC20 authorization from group1=>group2 (#1642)
Browse files Browse the repository at this point in the history
* change WhitelistERC20 authorization from group1=>group2

* changelog update

* Update changelog.md

---------

Co-authored-by: Lucas Bertrand <[email protected]>
  • Loading branch information
brewmaster012 and lumtis authored Jan 29, 2024
1 parent e78d152 commit 1c97d9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## Unreleased

### Fixes
### Fixes

* [1642](https://github.com/zeta-chain/node/pull/1642) - Change WhitelistERC20 authorization from group1 to group2
* [1610](https://github.com/zeta-chain/node/issues/1610) - add pending outtx hash to tracker after monitoring for 10 minutes

## Version: v12.1.0
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/keeper/msg_server_whitelist_erc20.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
// Authorized: admin policy group 1.
func (k msgServer) WhitelistERC20(goCtx context.Context, msg *types.MsgWhitelistERC20) (*types.MsgWhitelistERC20Response, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
if msg.Creator != k.zetaObserverKeeper.GetParams(ctx).GetAdminPolicyAccount(zetaObserverTypes.Policy_Type_group1) {
if msg.Creator != k.zetaObserverKeeper.GetParams(ctx).GetAdminPolicyAccount(zetaObserverTypes.Policy_Type_group2) {
return nil, errorsmod.Wrap(sdkerrors.ErrUnauthorized, "Deploy can only be executed by the correct policy account")
}
erc20Addr := ethcommon.HexToAddress(msg.Erc20Address)
Expand Down

0 comments on commit 1c97d9f

Please sign in to comment.