Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to pass tuple data as Parameters to contract.query() #696

Open
jackbbhua opened this issue Jun 15, 2023 · 0 comments
Open

how to pass tuple data as Parameters to contract.query() #696

jackbbhua opened this issue Jun 15, 2023 · 0 comments

Comments

@jackbbhua
Copy link

jackbbhua commented Jun 15, 2023

hi,everyone have a contract.query problem.
the docs show i need pass the data as tuple like
["0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c","True","0x55d398326f99059fF775485246999027B3197955","100","10000000","2500000000000","1900000000000",1]
now my code is :

`
let result = contract.query("openMarketTrade", (

), None, Options::default(), None);
let marketorder: U256 = result.await?;
println!("Transaction hash: {:?}", marketorder);

`

how can i complete the code to run? please help!

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

No branches or pull requests

1 participant