Closed EdgeDLT closed 1 year ago
@EdgeDLT
transaction.script should be a hex string
transaction.script = u.HexString.fromHex(script)
transaction.signers cannot use SignerLike directly, map it to Signer should be work
transaction.signers = signers.map(s => new tx.Signer(s));
or you can put your params into constructor, like
const transaction = new tx.Transaction({
signers: signers,
validUntilBlock: validUntilBlock,
script: script,
attributes: attributes,
});
Ah thanks @xie-yue! I missed the fact that the constructor was handling those conversions in the linked example.
Trying to set up a way to create multi-sig transactions that can be imported and signed in Neon. I was following this guide to get up and running when I ran into the issue during the
checkNetworkFee
step.It seems
transaction.serialize()
will error depending on which properties have been added to the transaction object. Here's a runnable example of what I'm talking about: