File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
packages/transaction-interpreter/interpreters Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ export function categorizedDefaultEvent(event: DecodedTransaction): InterpretedT
328328 }
329329
330330 // single mint
331- if ( minted . length === 1 && transfers . length <= 2 ) {
331+ if ( minted . length === 1 && newEvent . assetsSent . length <= 1 ) {
332332 const price = newEvent . assetsSent . length === 1 ? newEvent . assetsSent [ 0 ] : undefined
333333 return {
334334 ...newEvent ,
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import type { DecodedTransaction } from '@3loop/transaction-decoder'
55export function transformEvent ( event : DecodedTransaction ) : InterpretedTransaction {
66 const newEvent = categorizedDefaultEvent ( event )
77
8+ if ( newEvent . type !== 'unknown' ) return newEvent
9+
810 if ( ! event . toAddress ) return newEvent
911
1012 const filteredTransfers = filterTransfers ( event . transfers , {
You can’t perform that action at this time.
0 commit comments