Throwing error while using simpleTokenSend function
Closed this issue · 1 comments
p0o commented
I'm using a transaction very similar to the example on the Readme to send a SLP token (or NFT). The same transaction works pretty well on v0.24.0 but it will burn the NFT because there is no support for it in that version. So I upgraded to v.27.11 which by semver versioning shouldn't have any backward incompatibility but same transaction doesn't work anymore and throw this error:
Uncaught (in promise) TypeError: "list" argument must be an Array of Buffers
concat index.js:399
pushdata util.js:8
createOpReturnSend util.js:152
send tokentype1.js:7
buildSendOpReturn slptokentype1.js:50
buildSendOpReturn slp.js:128
simpleTokenSend transactionhelpers.js:90
simpleTokenSend bitboxnetwork.js:260
step bitboxnetwork.js:52
verb bitboxnetwork.js:33
__awaiter bitboxnetwork.js:27
__awaiter bitboxnetwork.js:23
simpleTokenSend bitboxnetwork.js:255
_callee2$ transactions.js:101
Babel 14
sendSlpTx transactions.js:57
Apparently the problem is with slp_mdm_1.TokenType1.send(tokenIdHex, outputQtyArray);
and new slp-mdm library because on versions before addition of this, same tx is working fine. Any ideas?
p0o commented
Fixed in simpleledger/slp-metadatamaker.js#3