Skip to content

Commit

Permalink
Merge pull request #14 from Vaultio/typeddata_try2
Browse files Browse the repository at this point in the history
Whole bunch of stuff for signing TypeData
  • Loading branch information
pr0zac authored Jun 20, 2018
2 parents a21fb89 + c02b2ce commit 80c420e
Show file tree
Hide file tree
Showing 4 changed files with 471 additions and 0 deletions.
5 changes: 5 additions & 0 deletions EtherKit/EtherKitError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,14 @@ public enum EtherKitError: Error {
case wrongSize(expected: Int, actual: Int)
case scalarConversionFailed(forValue: Any, toType: Any)
}

public enum Web3FailureReason {
case parsingFailure
}

case keyManagerFailed(reason: KeyManagerFailureReason)
case jsonRPCFailed(reason: JSONRPCFailureReason)
case dataConversionFailed(reason: DataConversionFailureReason)
case web3Failure(reason: Web3FailureReason)
case unknown(error: Error)
}
Loading

0 comments on commit 80c420e

Please sign in to comment.