-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow init in resources, add devtools and update all tests #87
Conversation
e05310f
to
b52a8c3
Compare
from: String, | ||
to: String, | ||
exchangeID: String = "exchange_123", | ||
data: OrderStatusData? = nil, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data: OrderStatusData? = nil, | |
data: CloseData? = nil, |
/// - Parameters: | ||
/// - did: The Bearer DID with which to sign the resource | ||
/// - keyAlias: An optional key alias to use instead of the default provided by the Bearer DID | ||
public mutating func sign(did: BearerDID, keyAlias: String? = nil) throws { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you explain to me what mutating
keyword does here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it means sign
is allowed to modify signature
(or whatever other properties) of the struct
cc: @acekyd @blackgirlbytes @EbonyLouis @angiejones @chris-tbd changes are in to introduce DevTools to swift 🎉 |
closes #67
adds devtools helper methods, allows init on resources, and updates all tests