copyWith method
ETHTransaction
copyWith({
- ETHTransactionType? type,
- ETHAddress? to,
- ETHAddress? from,
- int? nonce,
- BigInt? gasLimit,
- BigInt? gasPrice,
- BigInt? maxPriorityFeePerGas,
- BigInt? maxFeePerGas,
- List<
int> ? data, - BigInt? value,
- BigInt? chainId,
- List<
int> ? hash, - List<
AccessListEntry> ? accessList, - ETHSignature? signature,
Creates a copy of the ETHTransaction with updated fields.
Implementation
ETHTransaction copyWith(
{ETHTransactionType? type,
ETHAddress? to,
ETHAddress? from,
int? nonce,
BigInt? gasLimit,
BigInt? gasPrice,
BigInt? maxPriorityFeePerGas,
BigInt? maxFeePerGas,
List<int>? data,
BigInt? value,
BigInt? chainId,
List<int>? hash,
List<AccessListEntry>? accessList,
ETHSignature? signature}) =>
ETHTransaction._(
type: type ?? this.type,
to: to ?? this.to,
from: from ?? this.from,
nonce: nonce ?? this.nonce,
accessList: accessList ?? this.accessList,
gasLimit: gasLimit ?? this.gasLimit,
gasPrice: gasPrice ?? this.gasPrice,
maxPriorityFeePerGas:
maxPriorityFeePerGas ?? this.maxPriorityFeePerGas,
maxFeePerGas: maxFeePerGas ?? this.maxFeePerGas,
data: data ?? this.data,
value: value ?? this.value,
chainId: chainId ?? this.chainId,
signature: signature ?? this.signature);