Skip to content

Commit

Permalink
fix update onft data message
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 committed Nov 9, 2024
1 parent ec44553 commit 7236ba2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion x/onft/keeper/denom.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,10 @@ func (k Keeper) HasPermissionToUpdateData(ctx sdk.Context, denomID string, sende
return false
}

if sender.String() == denom.Creator {
if denom.UpdatableData && sender.String() == denom.Creator {
return true
}

return false
}

Expand Down
4 changes: 2 additions & 2 deletions x/onft/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,12 @@ func (m *MsgUpdateParams) ValidateBasic() error {
return m.Params.ValidateBasic()
}

func NewMsgUpdateONFTData(denomId, id, sender, data string) *MsgUpdateONFTData {
func NewMsgUpdateONFTData(denomId, id, data, sender string) *MsgUpdateONFTData {
return &MsgUpdateONFTData{
Id: id,
DenomId: denomId,
Sender: sender,
Data: data,
Sender: sender,
}
}

Expand Down

0 comments on commit 7236ba2

Please sign in to comment.