toString method

  1. @override
String toString()
override

Returns a string representation of the TransactionReceipt object.

Implementation

@override
String toString() {
  return '''
    TransactionReceipt {
      blockHash: $blockHash,
      blockNumber: $blockNumber,
      contractAddress: $contractAddress,
      cumulativeGasUsed: $cumulativeGasUsed,
      effectiveGasPrice: $effectiveGasPrice,
      from: $from,
      gasUsed: $gasUsed,
      logsBloom: $logsBloom,
      status: $status,
      to: $to,
      transactionHash: $transactionHash,
      transactionIndex: $transactionIndex,
      type: $type,
      logs: $logs,
    }
  ''';
}