You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✨ Add date literal (gets converted to int timestamp) (authored by @nathanielCherian through #90)
🛠️ Update ParseError messages
🐛 The final statement in a contract now MUST be a require statement (in all branches)
🐛 Empty contracts and functions are now considered invalid
🐛 Fix bug where certain covenants could become unspendable due to incorrect bytesize calculation
💥 BREAKING: Covenants using tx.bytecode now include a placeholder OP_NOP that gets replaced when constructor arguments are provided in the CashScript SDK. If you're not using the CashScript SDK, refer to the replaceBytecodeNop() function to see the steps required to do so manually.
💥 BREAKING: Remove --args parameter from the CLI, since this is too error prone with the recent changes in mind
💥 BREAKING: Restructure exports
CashScript SDK
✨ Add BitcoinRpcNetworkProvider that connects to a BCH node RPC (authored by @blockparty-sh through #89)
💥 Remove dependency on cashc and remove CashCompiler export
✨ The .send() function now returns a TransactionDetails object. This extends the libauth Transaction with added txid and hex fields.
Because it extends the previous return type, this is backwards compatible.
Since this now returns the transaction hex as a field, using .send(true) to return the transaction hex is deprecated and will be removed in a future release.
🐛 Improve reliability of the ElectrumNetworkProvider when sending multiple concurrent requests.