Skip to content

Commit

Permalink
chore: verify meme is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
trung2891 committed Aug 27, 2024
1 parent a10aa2a commit 39b813e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/relayer/src/xrpl/memo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ export interface BridgeMemo {
orai_recipient: string;
}

export function decodeOraiRecipientFromMemo(memos: Memo[]): string {
export function decodeOraiRecipientFromMemo(memos?: Memo[]): string {
if (memos == undefined) return "";

for (let memo of memos) {
if (memo.Memo.MemoData.length == 0) {
continue;
Expand Down

0 comments on commit 39b813e

Please sign in to comment.