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

runtime-sdk/modules/evm: Simplify revert reason encoding #1479

Merged
merged 1 commit into from Sep 12, 2023

Conversation

kostko
Copy link
Member

@kostko kostko commented Sep 8, 2023

Fixes #1478

Instead of attempting to decode simple ABI-encoded error strings, just return the entire data, base64-encoded.

@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Merging #1479 (85408ad) into main (9573807) will increase coverage by 0.02%.
The diff coverage is 96.15%.

@@            Coverage Diff             @@
##             main    #1479      +/-   ##
==========================================
+ Coverage   59.18%   59.20%   +0.02%     
==========================================
  Files         135      135              
  Lines        9609     9615       +6     
==========================================
+ Hits         5687     5693       +6     
  Misses       3880     3880              
  Partials       42       42              
Files Changed Coverage Δ
runtime-sdk/modules/evm/src/precompile/subcall.rs 70.83% <ø> (ø)
runtime-sdk/modules/evm/src/lib.rs 45.45% <90.90%> (-1.73%) ⬇️
runtime-sdk/modules/evm/src/mock.rs 94.11% <100.00%> (+4.64%) ⬆️

@kostko kostko force-pushed the kostko/fix/evm-revert-reason-simplify branch 2 times, most recently from f11c1f8 to 3696b12 Compare September 8, 2023 08:49
runtime-sdk/modules/evm/src/lib.rs Outdated Show resolved Hide resolved
@kostko kostko force-pushed the kostko/fix/evm-revert-reason-simplify branch from 3696b12 to bd07c8e Compare September 11, 2023 08:55
Instead of attempting to decode simple ABI-encoded error strings, just
return the entire data, base64-encoded.
@kostko kostko force-pushed the kostko/fix/evm-revert-reason-simplify branch from bd07c8e to 85408ad Compare September 11, 2023 09:23
@kostko kostko merged commit 7b77f02 into main Sep 12, 2023
27 checks passed
@kostko kostko deleted the kostko/fix/evm-revert-reason-simplify branch September 12, 2023 06:46
ptrus added a commit to oasisprotocol/oasis-web3-gateway that referenced this pull request Sep 20, 2023
ptrus added a commit to oasisprotocol/oasis-web3-gateway that referenced this pull request Sep 20, 2023
ptrus added a commit to oasisprotocol/oasis-web3-gateway that referenced this pull request Sep 20, 2023
ptrus added a commit to oasisprotocol/oasis-web3-gateway that referenced this pull request Sep 20, 2023
ptrus added a commit to oasisprotocol/oasis-web3-gateway that referenced this pull request Sep 20, 2023
ptrus added a commit to oasisprotocol/oasis-web3-gateway that referenced this pull request Sep 20, 2023
ptrus added a commit to oasisprotocol/oasis-web3-gateway that referenced this pull request Sep 20, 2023
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.

EVM: revert data is not handled uniformly
3 participants