Skip to content
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

Merged
merged 3 commits into from
Mar 29, 2024

Conversation

kirahsapong
Copy link
Collaborator

closes #67

adds devtools helper methods, allows init on resources, and updates all tests

from: String,
to: String,
exchangeID: String = "exchange_123",
data: OrderStatusData? = nil,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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 {
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

@kirahsapong kirahsapong merged commit 9379ff6 into main Mar 29, 2024
6 checks passed
@kirahsapong kirahsapong deleted the feat/add-devtools branch March 29, 2024 23:52
@kirahsapong
Copy link
Collaborator Author

kirahsapong commented Mar 29, 2024

cc: @acekyd @blackgirlbytes @EbonyLouis @angiejones @chris-tbd changes are in to introduce DevTools to swift 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow init on Resource types
2 participants