tokenika / eosfactory

Python-based EOS smart-contract development & testing framework
http://eosfactory.io/
Other
243 stars 62 forks source link

Support of secondary index query? #141

Closed Patrick-Shih closed 5 years ago

Patrick-Shih commented 5 years ago

Is eosfactory currently support query multi-index table with other than the primary key, i.e., by secondary index, or even the third?

In my test scenario I want to get the row using secondary index like

cleos get table account scope table --key-type i64 --index 2 -L 10 -U 10

It looks like there is no index parameter in the table method

So, is it currently supported? If yes, please let me know how to use it.

BTW, what is the key parameter used for in account.table method? I try to give it some value like '1', 'i32', '2' but it seems nothing is affected

stefanzarembinski commented 5 years ago

Thank you for the remark: the account.table needs updating. I correct it. The corrected version will be published soon, today or tomorrow with a new edition of EOSFactory. I you are in a hurry, updated version is in the branch pypi-ready.