Bitcoin-com / slp-sdk

Simple Ledger Protocol SDK powered by BITBOX
https://developer.bitcoin.com/slp
MIT License
20 stars 32 forks source link

Fix Util and Utils discrepency #57

Closed christroutner closed 5 years ago

christroutner commented 5 years ago

This PR fixes a programmatic discrepancy between BITBOX and slp-sdk. slp-sdk had a Utils class while BITBOX has a Util (singular) class. This makes usage of slp-sdk awkward.

This PR fixes the problem by properly extending the BITBOX Util class and adding the slp-sdk code to that class. To maintain backwards compatibility, SLP.Utils is an alias of SLP.Util. Either can be used.

Documentation will be updated for slp-sdk to rename the Utils class to Util and align the documentation across BITBOX and slp-sdk.

cgcardona commented 4 years ago

:tada: This PR is included in version 4.9.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: