mirror of
https://github.com/Permissionless-Software-Foundation/bch-js.git
synced 2026-09-21 16:51:59 -07:00
fix(tokentype1.js): Fixing bug in mint OP_RETURN
This commit is contained in:
@@ -395,7 +395,7 @@ class TokenType1 {
|
|||||||
if (!tokenId) {
|
if (!tokenId) {
|
||||||
throw new Error('tokenId property not found in mint-baton UTXO.')
|
throw new Error('tokenId property not found in mint-baton UTXO.')
|
||||||
}
|
}
|
||||||
if (!decimals) {
|
if (!decimals && decimals !== 0) {
|
||||||
throw new Error('decimals property not found in mint-baton UTXO.')
|
throw new Error('decimals property not found in mint-baton UTXO.')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user