wharfkit / session

Create account-based sessions, perform transactions, and allow users to login using Antelope-based blockchains.
Other
10 stars 1 forks source link

Split arguments and options for Session constructor #30

Closed aaroncox closed 1 year ago

aaroncox commented 1 year ago

This is a breaking change from 0.2.x to 0.3.x.

This change moves the required parameters into the SessionArgs as the first value of the constructor, and then moves all optional values as SessionOptions into the 2nd parameter of the constructor.

The goal is to make it easier to understand which values are required and which values are optional when manually creating a Session.