Skip to content

Commit

Permalink
lint fixes, comment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosnacks committed May 29, 2024
1 parent 36b1c04 commit 2410fac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ exclude = ["examples/"]
rust.missing_debug_implementations = "warn"
rust.missing_docs = "warn"
rust.unreachable_pub = "warn"
rustdoc.all = "warn"
rust.unused_must_use = "deny"
rust.rust_2018_idioms = "deny"
rust.rust_2018_idioms = { level = "deny", priority = -1 }
rustdoc.all = "warn"

[workspace.lints.clippy]
# These are some of clippy's nursery (i.e., experimental) lints that we like.
Expand Down
3 changes: 2 additions & 1 deletion examples/contracts/examples/deploy_from_bytecode.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Example of deploying a contract at Runtime from Solidity code to Anvil and interacting with it.
//! Example of deploying a contract at runtime from Solidity code to Anvil and interacting with it.
use alloy::{
hex::FromHex,
Expand Down Expand Up @@ -50,6 +50,7 @@ async fn main() -> Result<()> {
.on_http(rpc_url);

// We deploy the contract at run time from bytecode
// solc v0.8.24; solc a.sol --via-ir --optimize --bin
let contract_bytecode = "608080604052346100155760d2908161001a8239f35b5f80fdfe60808060405260043610156011575f80fd5b5f3560e01c9081633fb5c1cb1460865781638381f58a14606f575063d09de08a146039575f80fd5b34606b575f366003190112606b575f545f1981146057576001015f55005b634e487b7160e01b5f52601160045260245ffd5b5f80fd5b34606b575f366003190112606b576020905f548152f35b34606b576020366003190112606b576004355f5500fea2646970667358221220bdecd3c1dd631eb40587cafcd6e8297479db76db6a328e18ad1ea5b340852e3864736f6c63430008180033";
let data: Vec<u8> = FromHex::from_hex(contract_bytecode)?;
let tx = TransactionRequest::default().with_deploy_code(data);
Expand Down

0 comments on commit 2410fac

Please sign in to comment.