Developer Guide

utils/tx-result

Index

Classes

Functions

Functions

toTxResult

toTxResult(pe: PromiEvent‹any›): TransactionResult‹›

Defined in contractkit/src/utils/tx-result.ts:12

Transforms a PromiEvent to a TransactionResult.

PromiEvents are returned by web3 when we do a contract.method.xxx.send()

Parameters:

Name

Type

pe

PromiEvent‹any›

Returns: TransactionResult‹›