Skip to content

Commit

Permalink
Merge branch 'main' into adding-trace-call
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatSoshiant authored Sep 25, 2024
2 parents 137ad72 + ca60c9c commit c7f62e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

A cargo subcommand for building, verifying, and deploying Arbitrum Stylus WASM contracts in Rust.

> [!NOTE]
> Stylus contract verification will only be supported on Arbiscan for contracts deployed using cargo stylus `v0.5.0` or higher. We highly recommend deploying on Arbitrum Sepolia and verify your contracts on Sepolia Arbiscan first before going to mainnet.
## Quick Start

![Image](./header.png)
Expand Down
2 changes: 1 addition & 1 deletion main/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ pub const PROJECT_HASH_SECTION_NAME: &str = "project_hash";
pub const TOOLCHAIN_FILE_NAME: &str = "rust-toolchain.toml";

/// The default endpoint for connections to a Stylus-enabled Arbitrum node.
pub const DEFAULT_ENDPOINT: &str = "https://sepolia-rollup.arbitrum.io/rpc";
pub const DEFAULT_ENDPOINT: &str = "http://localhost:8547";
8 changes: 4 additions & 4 deletions main/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,10 @@ fn main() -> Result<()> {
// supported. These extensions are now incorporated as part of the `cargo-stylus` command itself and
// will be the preferred method of running them.
fn is_deprecated_extension(subcommand: &str) -> bool {
matches!(
subcommand,
"cargo-stylus-check" | "cargo-stylus-cgen" | "cargo-stylus-replay"
)
match subcommand {
"cargo-stylus-check" | "cargo-stylus-cgen" | "cargo-stylus-replay" => true,
_ => false,
}

Check warning on line 493 in main/src/main.rs

View workflow job for this annotation

GitHub Actions / clippy

match expression looks like `matches!` macro

warning: match expression looks like `matches!` macro --> main/src/main.rs:490:5 | 490 | / match subcommand { 491 | | "cargo-stylus-check" | "cargo-stylus-cgen" | "cargo-stylus-replay" => true, 492 | | _ => false, 493 | | } | |_____^ help: try: `matches!(subcommand, "cargo-stylus-check" | "cargo-stylus-cgen" | "cargo-stylus-replay")` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro = note: `#[warn(clippy::match_like_matches_macro)]` on by default
}

async fn main_impl(args: Opts) -> Result<()> {
Expand Down

0 comments on commit c7f62e1

Please sign in to comment.