Skip to content

Commit

Permalink
fix: add ledger.send memo to event (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency authored Jan 15, 2024
1 parent c449c3e commit eedcaac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/network/modules/events/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export interface SendEvent extends BaseEvent {
from: string
to: string
symbolAddress: string
memo?: Memo
}

export interface CreateAccountEvent extends BaseEvent {
Expand Down
2 changes: 2 additions & 0 deletions src/utils/transactions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ async function makeSendEventData(
to: (eventData.get(1) as Address)?.toString()!,
symbolAddress: (eventData.get(3) as Address)?.toString()!,
amount: BigInt(eventData.get(2) as number),
memo: eventData.get(4) as Memo,
}
}
return {
Expand All @@ -277,6 +278,7 @@ async function makeSendEventData(
to: (eventData.get(2) as Address)?.toString()!,
symbolAddress: (eventData.get(3) as Address)?.toString()!,
amount: BigInt(eventData.get(4) as number),
memo: eventData.get(5) as Memo,
}
}

Expand Down

0 comments on commit eedcaac

Please sign in to comment.