Skip to content
This repository has been 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

Open
xiaofo09 opened this issue Sep 20, 2018 · 0 comments
Open

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

xiaofo09 opened this issue Sep 20, 2018 · 0 comments

Comments

@xiaofo09
Copy link

xiaofo09 commented Sep 20, 2018

/* 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant