-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…tion-test [Tests] #250 Session Request integration tests re-enabled
- Loading branch information
Showing
6 changed files
with
155 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
26 changes: 26 additions & 0 deletions
26
Example/IntegrationTests/Sign/Helpers/EthSendTransaction.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import Foundation | ||
|
||
struct EthSendTransaction: Codable, Equatable { | ||
let from: String | ||
let data: String | ||
let value: String | ||
let to: String | ||
let gasPrice: String | ||
let nonce: String | ||
|
||
static func stub() -> EthSendTransaction { | ||
try! JSONDecoder().decode(EthSendTransaction.self, from: ethSendTransactionJSON.data(using: .utf8)!) | ||
} | ||
|
||
private static let ethSendTransactionJSON = """ | ||
{ | ||
"from":"0xb60e8dd61c5d32be8058bb8eb970870f07233155", | ||
"to":"0xd46e8dd67c5d32be8058bb8eb970870f07244567", | ||
"data":"0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675", | ||
"gas":"0x76c0", | ||
"gasPrice":"0x9184e72a000", | ||
"value":"0x9184e72a", | ||
"nonce":"0x117" | ||
} | ||
""" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.