Skip to content

Commit

Permalink
chore: conform SocketMessage payload to CodableData (#165)
Browse files Browse the repository at this point in the history
* chore: conform SocketMessage payload to CodableData

* Bump version to new minor
  • Loading branch information
elefantel committed Jul 3, 2024
1 parent fa084d8 commit e3250d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Alternatively, you can add the URL directly in your project's package file:
dependencies: [
.package(
url: "https://github.com/MetaMask/metamask-ios-sdk",
from: "0.6.5"
from: "0.7.0"
)
]
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ public struct SocketMessage<T: Codable>: CodableData, Mappable {
"id": id,
"ackId": ack,
"clientType": clientType,
"message": try? message.socketRepresentation()
"message": try? (message as? CodableData)?.socketRepresentation()
]
} else {
[
"id": id,
"clientType": clientType,
"message": try? message.socketRepresentation()
"message": try? (message as? CodableData)?.socketRepresentation()
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion metamask-ios-sdk.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'metamask-ios-sdk'
s.version = '0.6.5'
s.version = '0.7.0'
s.summary = 'Enable users to easily connect with their MetaMask Mobile wallet.'
s.swift_version = '5.5'

Expand Down

0 comments on commit e3250d4

Please sign in to comment.