Skip to content

Commit 825885e

Browse files
authored
fix: add memo support to ledger.send (#124)
1 parent 392398e commit 825885e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/network/modules/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export type LedgerSendParam = {
1414
to: string
1515
amount: bigint
1616
symbol: string
17+
memo?: Memo
1718
}
1819

1920
export type EventTypeIndices = [number, number | EventTypeIndices]

src/utils/transactions/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ export function makeLedgerSendParam({
2828
to,
2929
symbol,
3030
amount,
31+
memo,
3132
}: LedgerSendParam) {
3233
const m = new Map()
3334
from && m.set(0, from)
35+
memo && m.set(4, memo)
3436
return m.set(1, to).set(2, amount).set(3, symbol)
3537
}
3638

0 commit comments

Comments
 (0)