Project: quorum-acceptance-tests

Failed: 2/6 Passed: 4/6 Skipped: 0/6
6Total specs
  • 2Failed
  • 4Passed
  • default
  • 66%
  • 00:01:13
  • Oct 1, 2018 at 2:22pm

Public smart contract with event

00:00:30

A smart contract, ClientReceipt, logs all the deposits that have been performed.

pragma solidity ^0.4.0;


contract ClientReceipt {
    event Deposit(
        address indexed _from,
        bytes32 indexed _id,
        uint _value
    );


    function deposit(bytes32 _id) public payable {
        emit Deposit(msg.sender, _id, msg.value);
    }
}

Log events are captured when executing the contract

00:00:30
Execution Time : 00:00:15
  • Deploy `ClientReceipt` smart contract from a default account in "Node1" , named this contract as "contract12" .
Execution Time : 00:00:00
  • "contract12" is mined.
Execution Time : 00:00:15
  • Execute "contract12" 's `deposit()` function "10" times with arbitrary id and value from "Node1" .
Execution Time : 00:00:00
  • "Node1" has received "10" transactions which totally contain "10" log events.