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/AlphaWalletTests/Factories/UnconfirmedTransaction.swift

30 lines
920 B

// Copyright SIX DAY LLC. All rights reserved.
import Foundation
@testable import AlphaWallet
import BigInt
extension UnconfirmedTransaction {
static func make(
transactionType: TransactionType = .nativeCryptocurrency(TokenObject(), destination: .none, amount: nil),
value: BigInt = BigInt(1),
to: AlphaWallet.Address = .make(),
recipient: AlphaWallet.Address? = .none,
data: Data = Data(),
gasLimit: BigInt? = BigInt(100000),
gasPrice: BigInt? = BigInt(1000),
nonce: BigInt? = BigInt(1)
) -> UnconfirmedTransaction {
return UnconfirmedTransaction(
transactionType: transactionType,
value: value,
recipient: recipient,
contract: to,
data: data,
tokenId: nil,
gasLimit: gasLimit,
gasPrice: gasPrice,
nonce: nonce
)
}
}