Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

tx.txIn[0].value.includes is not a function #9

Open
nemanjamil opened this issue Jan 19, 2023 · 1 comment
Open

tx.txIn[0].value.includes is not a function #9

nemanjamil opened this issue Jan 19, 2023 · 1 comment

Comments

@nemanjamil
Copy link

nemanjamil commented Jan 19, 2023

Update this code

if(Object.keys(tx.txOut[0].value).includes("undefined")|| Object.keys(tx.txIn[0].value.includes("undefinded"))){
delete tx.txOut[0].value.undefined
delete tx.txIn[0].value.undefined
}

with this one
if (
Object.keys(tx.txOut[0].value).includes("undefined") ||
Object.keys(tx.txIn[0].value).includes("undefinded")
) {
delete tx.txOut[0].value.undefined;
delete tx.txIn[0].value.undefined;
}

@nemanjamil
Copy link
Author

Reason for update is error on minting NFT : "TypeError: tx.txIn[0].value.includes is not a function"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant