Skip to content

docs: add warning about failing transactions - #3

Merged
MarvinJanssen merged 1 commit into
MarvinJanssen:mainfrom
obycode:docs/add-warning
Jun 6, 2025
Merged

MarvinJanssen merged 1 commit into
MarvinJanssen:mainfrom
obycode:docs/add-warning

Conversation

@obycode

@obycode obycode commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

In case this is not obvious, it's important to draw attention to the fact that a transaction that can be confirmed to be in a block is not guaranteed to have completed successfully.

In case this is not obvious, it's important to draw attention to the
fact that a transaction that can be confirmed to be in a block is not
guaranteed to have completed successfully.
@friedger

friedger commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

Best to rename the function is-contract-deployed to something like is-contract-deploy-tx-mined

To get something like a is-contract-deployed for successful only tx, we need probably stacks-network/reference#88
Are there other work around?

@obycode

obycode commented Jun 6, 2025

Copy link
Copy Markdown
Contributor Author

Oh, yeah, I didn't notice that. Definitely a good change to make.

@obycode

obycode commented Jun 6, 2025

Copy link
Copy Markdown
Contributor Author

No, I don't think there are any workarounds to get the result of a transaction.

@MarvinJanssen

Copy link
Copy Markdown
Owner

Thank you @obycode. You beat me to it. I will merge this now to at least have a warning in the README. I will do a more complete update on this repo soon.

@MarvinJanssen
MarvinJanssen merged commit be5602f into MarvinJanssen:main Jun 6, 2025
@friedger

friedger commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

Just for completness. If the code to verify is 100% correct and will always deploy, then the tx can't fail for deployment

@obycode

obycode commented Jun 6, 2025

Copy link
Copy Markdown
Contributor Author

Yeah, I think that's true. In today's case, there was a missing dependency that caused the deploy to fail.

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

Successfully merging this pull request may close these issues.

3 participants