Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
fix: fix missing erc721 from / to fields on discord
Browse files Browse the repository at this point in the history
  • Loading branch information
kenryu42 committed Nov 14, 2022
1 parent 667d1f1 commit deda2d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/discord/embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ const sendEmbedMessage = async (tx: TransactionData) => {
true
)
.addField('To', `[${tx.to}](${tx.market.accountPage}${tx.toAddr}${isX2Y2})`, true);
} else if (tx.tokenType === 'ERC721' && tx.quantity === 1) {
embed
.addField('From', `[${tx.from}](${tx.market.accountPage}${tx.fromAddr})`, true)
.addField('To', `[${tx.to}](${tx.market.accountPage}${tx.toAddr})`, true);
}
}

Expand Down

0 comments on commit deda2d0

Please sign in to comment.