Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

How to call a function in smart contract by using tester.py #892

@xiaofo09

Description

@xiaofo09
/* contract source code */
contract Hello {
   uint counter = 0;
   function count(uint food) public {
      counter += food;
   }
}

/* python source code */
c.tx(sender=k0, to=contract.count.address, data=3) 

How to call a function in smart contract by using tester.py ? There is a tutorial for tester module. but it is not detailed. Of course, above tx call does not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions