Skip to content

Commit

Permalink
Merge pull request #170 from ajamaica/feature/encodable-init
Browse files Browse the repository at this point in the history
Encodable wrapper init
  • Loading branch information
ajamaica authored Apr 21, 2022
2 parents d9b6c79 + c71c7dd commit 25f425e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Solana/Networking/Models/SolanaRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ struct SolanaRequest: Encodable {

public struct EncodableWrapper: Encodable {
let wrapped: Encodable

public init(wrapped: Encodable){
self.wrapped = wrapped
}

public func encode(to encoder: Encoder) throws {
try self.wrapped.encode(to: encoder)
Expand Down

0 comments on commit 25f425e

Please sign in to comment.