Closed Maveth0 closed 6 years ago
var prepareContract = nem.model.transactions.prepare("signatureTransaction")(common, apostille, nem.model.network.data.testnet.id);
Shouldn't you use apostille.transaction
here ? so replace with :
var prepareContract = nem.model.transactions.prepare("signatureTransaction")(common, apostille.transaction, nem.model.network.data.testnet.id);
It still gives the same error as the first one which is:
SCRIPT5007: Unable to get property 'data' of undefined or null reference nem-sdk.js (10126,9)
Figured it out. "MultisigAddress" should be the public key, not address. It wasn't really clear in the documentations.
I'm making a simple apostille transaction based on the examples. It works fine when I'm not using a multisig account. But I don't know why it won't work as a multisig transaction.
Code:
Error:
which points to:
I've also tried removing the prepareContract then changing the send function as:
Error:
Changing the endpoint doesn't make any difference.
Any help would be appreciated.