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

Can't deploy pox-3 contract on testnet, Failed to deserialize posted transaction: Invalid Stacks string: non-printable or non-ASCII string #1550

Closed
llwinner opened this issue Sep 19, 2023 · 4 comments
Assignees

Comments

@llwinner
Copy link

I tried to depoly pox-3 contract on testnet, I copied the contract SP000000000000000000002Q6VF78.pox-3 and follow the example:
https://github.com/hirosystems/stacks.js/tree/main/packages/transactions
But when I run code I got an error: Failed to deserialize posted transaction: Invalid Stacks string: non-printable or non-ASCII string
I can deploy hello-stacks contract on testnet with the same code. I tried to deploy pox-2 contract and got the same error.
What should I do?
Please help me, thanks!

@janniks
Copy link
Collaborator

janniks commented Sep 25, 2023

Good question, I'll have to look into the exact contract code.

@janniks
Copy link
Collaborator

janniks commented Sep 25, 2023

It turns out the pox-3 contract isn't meant to be deployed as is. The blockchain is doing some more work and concatenation to make it run. What are you trying to achieve, maybe we can help? 😀

@llwinner
Copy link
Author

@janniks Thanks for your reply. I want to test that contract on testnet, but just as you said, the blockchain is doing some more work and concatenation to make it run. So I will debug my code on mainnet.

@friedger
Copy link
Collaborator

Have you considered using clarinet integrate? https://docs.hiro.so/clarinet/feature-guides/clarinet-integrate

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

No branches or pull requests

3 participants