-
Notifications
You must be signed in to change notification settings - Fork 310
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
Call the contract with stacks.js using the same parameters according to the transaction of the wallet got an error #1557
Comments
|
In general discord is better for these kind of questions. This is not a support forum. |
@friedger Thanks for your reply! I will go to discord to ask this kind of question. |
@friedger Excuse me I want to join the discord which in README, but it tells me: The invitation may have expired, or you may not have permission to join. |
@friedger Thanks, I have joined the stacks discord by your link! |
Thanks for the comments 🙏🏻 |
I delegate some STX with LoskStacks and I can see the transaction in Leather Wallet.
Now I want to call delegate function with stacks.js, so I use the same parameters, but one parameter: user-pox-addr {hashbytes: (buff 32), version: (buff 1)} I check the transaction about this parameter:
I use the same string:
When I run the code, I got an error:
Clarity function
delegate-stx
expects argument 5 to be of type (tuple (hashbytes (buff 32)) (version (buff 1))), not (tuple (hashbytes (buff 42)) (version (buff 4)))The length of hashbytes(0x....8b5) is 42.
Why I use the same parameter got an error?
What should I do?
Please help me, thanks!
The text was updated successfully, but these errors were encountered: