class Eth::Client

def transact_and_wait(contract, function, *args, **kwargs)

Returns:
  • (Object) - returns the result of the transaction.

Raises:
  • (Client::ContractExecutionError) - if the execution fails.
def transact_and_wait(contract, function, *args, **kwargs)
  begin
    hash = wait_for_tx(transact(contract, function, *args, **kwargs))
    return hash if tx_succeeded? hash
  rescue IOError => e
    raise ContractExecutionError, e
  end
end