Skip to content

eth/client: always return hash even if transaction didn't succeed#284

Merged
q9f merged 1 commit intomainfrom
q9f/client/txstatus
Jul 2, 2024
Merged

eth/client: always return hash even if transaction didn't succeed#284
q9f merged 1 commit intomainfrom
q9f/client/txstatus

Conversation

@q9f
Copy link
Owner

@q9f q9f commented Jul 2, 2024

fix #223

sometimes the execution does not succeed in which case we don't return the hash

now, we return the hash and a status: [hash, status] which might break some scripts.

before: hash = transact_and_wait()

after: hash, status = transact_and_wait()

@q9f q9f added bug Something isn't working breaking change Should clearly be documented labels Jul 2, 2024
@q9f q9f merged commit fd5b6b5 into main Jul 2, 2024
@q9f q9f deleted the q9f/client/txstatus branch July 2, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Should clearly be documented bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Smart Contract cli.transact_and_wait returning nil, instead for error message

1 participant