Skip to content

Commit

Permalink
fix: correct recipient encoding in MTokenReceived event (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey authored Mar 4, 2025
1 parent c8d3db3 commit ffef804
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changelog/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
project_url = "https://github.com/noble-assets/dollar"
Empty file added .changelog/unreleased/.gitkeep
Empty file.
3 changes: 3 additions & 0 deletions .changelog/v1.0.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*Feb 28, 2025*

Initial release of the `x/dollar` module, enabling the issuance of the Noble Dollar ($USDN).
1 change: 1 addition & 0 deletions .changelog/v1.0.1/bug-fixes/27-recipient-encoding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Correctly encode the recipient address in the `MTokenReceived` event. ([#27](https://github.com/noble-assets/dollar/pull/27))
3 changes: 3 additions & 0 deletions .changelog/v1.0.1/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*Mar 4, 2025*

This is a non-consensus breaking patch to the `v1` release line.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# CHANGELOG

## v1.0.1

*Mar 4, 2025*

This is a non-consensus breaking patch to the `v1` release line.

### BUG FIXES

- Correctly encode the recipient address in the `MTokenReceived` event. ([#27](https://github.com/noble-assets/dollar/pull/27))

## v1.0.0

*Feb 28, 2025*

Initial release of the `x/dollar` module, enabling the issuance of the Noble Dollar ($USDN).

2 changes: 1 addition & 1 deletion keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func (k *Keeper) HandlePayload(ctx context.Context, payload []byte, eventsPayloa
return err
}

recipient, err := k.address.BytesToString(tokenPayload.Recipient[12:])
recipient, err := k.address.BytesToString(tokenPayload.Recipient)
if err != nil {
return fmt.Errorf("error encoding the recipient address: %w", err)
}
Expand Down

0 comments on commit ffef804

Please sign in to comment.