toTransaction method

ETHTransaction toTransaction()

Implementation

ETHTransaction toTransaction() {
  return ETHTransaction(
      chainId: chainId ?? BigInt.zero,
      data: BytesUtils.fromHexString(input),
      gasLimit: BigInt.from(gas),
      nonce: nonce,
      value: value,
      accessList: accessList,
      from: ETHAddress(from),
      gasPrice: gasPrice == null ? null : BigInt.from(gasPrice!),
      maxFeePerGas: maxFeePerGas == null ? null : BigInt.from(maxFeePerGas!),
      maxPriorityFeePerGas: maxPriorityFeePerGas == null
          ? null
          : BigInt.from(maxPriorityFeePerGas!),
      // signature: toSignature(),
      to: to == null ? null : ETHAddress(to!),
      type: ETHTransactionType.fromPrefix(type));
}