PaulBernier/factomjs

README params for createEntryCreditPurchaseTransaction backwards

Closed this issue · 1 comments

const transaction = await cli.createEntryCreditPurchaseTransaction('Fs2w6VL6cwBqt6SpUyPLvdo9TK834gCr52Y225z8C5aHPAFav36X', 'EC2UFobcsWom2NvyNDN67Q8eTdpCQvwYe327ZeGTLXbYaZ56e9QR', 10);

The EntryCredit public key should be first and the Factom private key second, based on the error that I received and resolved.

This is invalid, I swapped the parameters in a function causing this. Closing...