An advanced Ethereum/EVM mobile wallet
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
alpha-wallet-ios/TrustTests/Factories/Transaction.swift

37 lines
952 B

7 years ago
// Copyright SIX DAY LLC. All rights reserved.
import Foundation
@testable import Trust
extension Transaction {
static func make(
id: String = "0x1",
blockNumber: Int = 1,
7 years ago
from: String = "0x1",
to: String = "0x1",
value: String = "1",
gas: String = "0x1",
gasPrice: String = "0x1",
gasUsed: String = "0x1",
nonce: String = "0",
7 years ago
date: Date = Date(),
localizedOperations: [LocalizedOperationObject] = [],
state: TransactionState = .completed
7 years ago
) -> Transaction {
return Transaction(
id: id,
blockNumber: blockNumber,
from: from,
to: to,
value: value,
gas: gas,
gasPrice: gasPrice,
gasUsed: gasUsed,
nonce: nonce,
7 years ago
date: date,
localizedOperations: localizedOperations,
state: state
7 years ago
)
}
}