stacks-archive / stacks-transactions-js

The JavaScript library for generating Stacks 2.0 transactions
19 stars 17 forks source link

Contract transaction tests #12

Closed reedrosenbluth closed 4 years ago

reedrosenbluth commented 4 years ago

This PR updates the contract deploy test and adds a test for contract-call transaction serialization.

It includes a few fixes for txid generation which was breaking Transaction signing. It also fixes the values in the PayloadType enum, accounting for a typo in SIP 005 which has been fixed (https://github.com/blockstack/stacks-blockchain/pull/1326)

Additionally, I moved the collectCoverage option out of the Jest config and into package.json, as it was breaking my VSCode debugger (https://github.com/kulshekhar/ts-jest/issues/484)