Skip to content

Commit

Permalink
Merge pull request #62 from ava-labs/NameUpdate
Browse files Browse the repository at this point in the history
Update erc20/erc721 unknown symbol
  • Loading branch information
learyce authored Dec 19, 2021
2 parents cb77ca6 + db8d67e commit c9ac723
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
)

const (
UnknownERC20Symbol = "ERC20"
UnknownERC20Symbol = "ERC20_UNKNOWN"
UnknownERC20Decimals = 0

UnknownERC721Symbol = "ERC721"
UnknownERC721Symbol = "ERC721_UNKNOWN"
UnknownERC721Decimals = 0
)

Expand Down
1 change: 0 additions & 1 deletion mapper/amount.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ func Erc20Amount(
decimalValue = new(big.Int).Neg(decimalValue)
}
metadata := make(map[string]interface{})
metadata[TokenTypeMetadata] = "ERC20"
metadata[ContractAddressMetadata] = contractAddress.String()

return &types.Amount{
Expand Down
1 change: 0 additions & 1 deletion mapper/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@ func parseErc721Txs(transferLog ethtypes.Log, opsLen int64) []*types.Operation {
addressTo := transferLog.Topics[2]
erc721Index := transferLog.Topics[3] // Erc721 4th topic is the index. Data is empty
metadata := make(map[string]interface{})
metadata[TokenTypeMetadata] = "ERC721"
metadata[ContractAddressMetadata] = contractAddress.String()
metadata[IndexTransferedMetadata] = erc721Index.String()

Expand Down

0 comments on commit c9ac723

Please sign in to comment.