ProviderError
: Solidity custom error
#4441
Unanswered
doerfli
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there
I have this simple example of a Solidity smart contract - https://github.com/etherisc/gif-next/pull/54/files#diff-a5e5271117f0fb75c392f0715b7fe676cccc25cb339132cc9bf2d4c9077f8039
and a hardhat script to deploy it https://github.com/etherisc/gif-next/pull/54/files#diff-0e1d03ebd17c019a2e53fc06307e66883e93cef99b4c0e826d58159249f23147
Now the hardhat script will deploy it and execute three transactions, the first two are good, the third will revert (on purpose) with a custom error (https://github.com/etherisc/gif-next/pull/54/files#diff-a5e5271117f0fb75c392f0715b7fe676cccc25cb339132cc9bf2d4c9077f8039R24)
In the script a
ProviderError
is thrown, but i am interested in why this happened. How can i get to the custom error for that Error?Thanks,
Marc
Beta Was this translation helpful? Give feedback.
All reactions