Skip to content

Commit

Permalink
handle semifungible transfers; (#198)
Browse files Browse the repository at this point in the history
Signed-off-by: tcar <[email protected]>
  • Loading branch information
tcar121293 authored Apr 12, 2024
1 parent 258ffc5 commit a7d67c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/indexer/services/evmIndexer/evmTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export enum FeeHandlerType {
export enum DepositType {
FUNGIBLE = "fungible",
NONFUNGIBLE = "nonfungible",
SEMIFUNGIBLE = "semifungible",
PERMISSIONLESS_GENERIC = "permissionlessGeneric",
PERMISSIONED_GENERIC = "permissionedGeneric",
}
3 changes: 3 additions & 0 deletions src/indexer/utils/evm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ function decodeAmountsOrTokenId(data: string, decimals: number, resourceType: st
const tokenId = AbiCoder.defaultAbiCoder().decode(["uint256"], data)[0] as number
return tokenId.toString()
}
case DepositType.SEMIFUNGIBLE: {
return ""
}
case DepositType.PERMISSIONLESS_GENERIC: {
return ""
}
Expand Down

0 comments on commit a7d67c4

Please sign in to comment.