stacks-archive / stacks-transactions-js

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

feat: add support for specifying post-condition mode #40

Closed zone117x closed 4 years ago

zone117x commented 4 years ago

Use the following template to create your pull request

Description

Make specifying post-condition fields in tx builders consistent. Example of new usage:

const tx = makeSmartContractDeploy(<args>, {
    postConditions: myConditions,
    postConditionsMode: PostConditionMode.Allow,
}).serialize();

Previously, this required modifying a property on the intermediate tx object before serialization.

Type of Change

Checklist