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

fix(forge): warn if script is executed with cbor metadata disabled #9005

Closed
wants to merge 3 commits into from

Conversation

grandizzy
Copy link
Collaborator

Motivation

Closes #8995

Added warn message inline with coverage warn if cbor metadata disabled when using forge script
image

Solution

@grandizzy grandizzy marked this pull request as ready for review October 2, 2024 10:46
@@ -211,6 +211,10 @@ impl ScriptArgs {

let (config, mut evm_opts) = self.load_config_and_evm_opts_emit_warnings()?;

// print warning message if `cbor_metadata` is disabled
let msg = "Warning! \"--no-metadata\" flag or \"cbor_metadata\" set to false can result in deployment failures.".yellow();
p_println!(!config.cbor_metadata => "{msg}");
Copy link
Member

Choose a reason for hiding this comment

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

should use cli_warn

Copy link
Collaborator Author

@grandizzy grandizzy Oct 3, 2024

Choose a reason for hiding this comment

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

👍 noted, thank you (I used the coverage warn style, but will update that one to cli warn as well), reworking the whole PR a little bit so changed to draft

@grandizzy grandizzy marked this pull request as draft October 3, 2024 16:44
@grandizzy grandizzy closed this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

bug(forge script): Failed to decode constructor arguments: buffer overrun while deserializing
2 participants