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

verify and reproducible subcommands #25

Closed
wants to merge 1 commit into from

Conversation

mikebenfield
Copy link

@mikebenfield mikebenfield commented Jan 18, 2024

Closes STY-77

@mikebenfield mikebenfield force-pushed the contract-verification branch 2 times, most recently from 98b202d to 193bde5 Compare February 1, 2024 17:47
Copy link
Contributor

@rauljordan rauljordan left a comment

Choose a reason for hiding this comment

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

Stylus program with same WASM code is already activated onchain
Verified - data matches!

nice ! this worked for me. Approving as the only 2 comments I had are nits, great job

src/verify.rs Outdated
input: String,
}

fn hex_str_to_bytes(s: &str) -> eyre::Result<Vec<u8>> {
Copy link
Contributor

Choose a reason for hiding this comment

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

The hex crate does this, I believe, and we already depend on it hex::decode

src/verify.rs Outdated

pub async fn verify(cfg: VerifyConfig) -> eyre::Result<()> {
let provider = util::new_provider(&cfg.common_cfg.endpoint)?;
let result: RpcResult = provider
Copy link
Contributor

Choose a reason for hiding this comment

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

@mikebenfield mikebenfield force-pushed the contract-verification branch from 193bde5 to cc11ed6 Compare February 7, 2024 06:32
@mikebenfield mikebenfield marked this pull request as draft March 25, 2024 21:58
@mikebenfield
Copy link
Author

This PR is essentially done, but we're waiting until a cargo stylus refactor to merge it.

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.

2 participants