Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
sontrinh16 committed Sep 13, 2024
1 parent 4583ff6 commit 3be413f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/asset/priviledges/transfer_auth/priv.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ func (tp TransferAuthPriviledge) GetAddrList(ctx sdk.Context, tokenId string) (A
}, nil
}

var allowAddrs *AllowAddrs
err := tp.cdc.Unmarshal(bz, allowAddrs)
var allowAddrs AllowAddrs
err := tp.cdc.Unmarshal(bz, &allowAddrs)
if err != nil {
return AllowAddrs{
Addrs: map[string]bool{},
}, err
}

return *allowAddrs, nil
return allowAddrs, nil
}

func (tp TransferAuthPriviledge) AddAddr(ctx sdk.Context, addr, tokenId string) error {
Expand Down

0 comments on commit 3be413f

Please sign in to comment.