copyWith method
Transaction
copyWith({
- EthereumAddress? from,
- EthereumAddress? to,
- BigInt? gas,
- BigInt? maxGas,
- BigInt? gasPrice,
- EtherAmount? value,
- Uint8List? data,
- int? nonce,
- BigInt? maxPriorityFeePerGas,
- BigInt? maxFeePerGas,
Implementation
Transaction copyWith({
EthereumAddress? from,
EthereumAddress? to,
BigInt? gas,
BigInt? maxGas,
BigInt? gasPrice,
EtherAmount? value,
Uint8List? data,
int? nonce,
BigInt? maxPriorityFeePerGas,
BigInt? maxFeePerGas,
}) {
return Transaction(
from: from ?? this.from,
to: to ?? this.to,
gas: gas ?? this.gas,
maxGas: maxGas ?? this.maxGas,
gasPrice: gasPrice ?? this.gasPrice,
value: value ?? this.value,
data: data ?? this.data,
nonce: nonce ?? this.nonce,
maxFeePerGas: maxFeePerGas ?? this.maxFeePerGas,
maxPriorityFeePerGas: maxPriorityFeePerGas ?? this.maxPriorityFeePerGas,
);
}