Skip to content

Commit

Permalink
Fix ERC-1155 decimals - correct is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
madis committed Mar 17, 2024
1 parent 770d029 commit 1ce762d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/src/ethlance/shared/token_utils.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
token-decimals (case token-type
:eth 18
:erc721 0
:erc1155 1
:erc1155 0
:erc20 (if (has-contract-method? contract-instance "decimals")
(<! (promise->chan (w3-eth/contract-call contract-instance :decimals [] {})))
18))]
Expand Down

0 comments on commit 1ce762d

Please sign in to comment.