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

backport: Fix incorrect encoding used by prove cheatcode (#254) #276

Merged
merged 5 commits into from
Oct 3, 2024

Conversation

Wollac
Copy link
Contributor

@Wollac Wollac commented Oct 3, 2024

With the change from ethers to alloy, we made an error in assuming they'd handle ABI encoding of Vec<_> the same. This broke the prove cheatcode that is used in the Foundry template tests. We did not catch this error prior to releasing, because we had moved all our tests in this repo over to using RiscZeroMockVerifier.mockProve instead and forgot to add test coverage specifically for this cheatcode.

This PR fixes the encoding issue and additionally adds a simple test for using risc0-forge-ffi in dev mode.

Additionally, this PR solves a problem where the FFI cheatcode would fail if RUST_LOG is set.

Wollac and others added 4 commits October 3, 2024 09:46
With the change from `ethers` to `alloy`, we made an error in assuming
they'd handle ABI encoding of `Vec<_>` the same. This broke the `prove`
cheatcode that is used in the Foundry template tests. We did not catch
this error prior to releasing, because we had moved all our tests in
this repo over to using `RiscZeroMockVerifier.mockProve` instead and
forgot to add test coverage specifically for this cheatcode.

This PR fixes the encoding issue and additionally adds a simple test for
using `risc0-forge-ffi` in dev mode.

Additionally, this PR solves a problem where the FFI cheatcode would
fail if `RUST_LOG` is set.

---------

Co-authored-by: Wolfgang Welz <welzwo@gmail.com>
@Wollac Wollac requested a review from a team as a code owner October 3, 2024 11:18
Base automatically changed from fix/release-1.1.2 to release-1.1 October 3, 2024 11:25
@capossele capossele merged commit b8a1421 into release-1.1 Oct 3, 2024
9 checks passed
@capossele capossele deleted the backport/release-1.1/prove-cheatcode branch October 3, 2024 11:44
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