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

[chore] Disable Move warnings for test config #18168

Merged
merged 3 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Revert sui-surfer changes
  • Loading branch information
tnowacki committed Jun 10, 2024
commit 14fbf70483b6af245905222aba40573dbbee1f7a
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crates/sui-surfer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ tracing.workspace = true
move-binary-format.workspace = true
move-core-types.workspace = true
telemetry-subscribers.workspace = true
move-compiler.workspace = true

[dev-dependencies]
prometheus.workspace = true
Expand Down
6 changes: 1 addition & 5 deletions crates/sui-surfer/src/surfer_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
use indexmap::IndexSet;
use move_binary_format::file_format::Visibility;
use move_binary_format::normalized::Type;
use move_compiler::linters::LintLevel;
use move_core_types::language_storage::StructTag;
use rand::rngs::StdRng;
use std::collections::{HashMap, HashSet};
Expand Down Expand Up @@ -319,10 +318,7 @@ impl SurferState {
#[tracing::instrument(skip_all, fields(surfer_id = self.id))]
pub async fn publish_package(&mut self, path: &Path) {
let rgp = self.cluster.get_reference_gas_price().await;
let mut config = BuildConfig::default();
config.config.lint_flag.set(LintLevel::None);
config.config.silence_warnings = true;
let package = config.build(path).unwrap();
let package = BuildConfig::new_for_testing().build(path).unwrap();
let modules = package.get_package_bytes(false);
let tx_data = TransactionData::new_module(
self.address,
Expand Down
Loading