Skip to content

Commit

Permalink
docs: update migration (#1771)
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks authored Nov 26, 2024
1 parent 2cf886b commit fd0bf26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ For `bigint` values, the type of the `value` property is a now `string`, for bet
The old `PostCondition` type was renamed to `PostConditionWire`.
A new human-readable `PostCondition` type was introduced in its place.

Below is an example of the new `PostCondition` types.
The previous builders (`makeStandardSTXPostCondition`, `makeStandardFungiblePostCondition`, `makeStandardNonFungiblePostCondition`, `makeContractSTXPostCondition`, `makeContractFungiblePostCondition`, and `makeContractNonFungiblePostCondition` using the enums were removed.
Use the `Pc` post-condition builder instead or construct post-condition object (of the type `PostCondition`) manually using strings and string literals.

Below are examples of the new `PostCondition` types.

```ts
// STX post-condition
Expand Down

0 comments on commit fd0bf26

Please sign in to comment.