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

Swap SolidityError for ContractLogicError #1814

Merged
merged 1 commit into from
Jan 13, 2021

Conversation

kclowes
Copy link
Collaborator

@kclowes kclowes commented Dec 18, 2020

This is branched off of #1813, so should be merged after.

What was wrong?

The SolidityError introduced in #1585 should be more generic to account for other languages.

Related to Issue #1813, #1585

How was it fixed?

Swapped out SolidityError for a ContractLogicError. ContractLogicError inherits from the SolidityError for backwards compatibility, and we'll remove SolidityError in v6. Although the history doesn't reflect this any more, I made the change in the code without making any changes to the tests to make sure we had backwards compatibility, then made the change in the tests.

Todo:

Cute Animal Picture

image

@kclowes kclowes mentioned this pull request Dec 18, 2020
1 task
@kclowes kclowes changed the title [WIP] Swap SolidityError for TransactionError Swap SolidityError for TransactionError Dec 18, 2020
@kclowes kclowes requested a review from wolovim December 18, 2020 18:20
@kclowes kclowes changed the title Swap SolidityError for TransactionError Swap SolidityError for TransactionFailed Dec 18, 2020
@kclowes kclowes force-pushed the swap-solidity-err-for-tx-err branch from 7a9c4a9 to 9acd13c Compare January 8, 2021 18:09
@kclowes kclowes requested a review from wolovim January 8, 2021 18:16
web3/exceptions.py Outdated Show resolved Hide resolved
@kclowes kclowes changed the title Swap SolidityError for TransactionFailed Swap SolidityError for RevertTransaction Jan 8, 2021
@kclowes kclowes force-pushed the swap-solidity-err-for-tx-err branch 2 times, most recently from 2b5604f to 9a59f49 Compare January 11, 2021 22:23
@kclowes kclowes changed the title Swap SolidityError for RevertTransaction Swap SolidityError for ContractLogicError Jan 11, 2021
@kclowes kclowes force-pushed the swap-solidity-err-for-tx-err branch from 9a59f49 to e370d16 Compare January 13, 2021 18:10
Copy link
Member

@wolovim wolovim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the sweet satisfaction of a well-named thing 🙏

(hopefully this ages well 😅 )

@kclowes kclowes merged commit 0618270 into ethereum:master Jan 13, 2021
@kclowes kclowes deleted the swap-solidity-err-for-tx-err branch January 13, 2021 18:43
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