Skip to content

Commit

Permalink
host ios added
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed May 31, 2024
1 parent 6bc866c commit 4cb81fd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
9 changes: 6 additions & 3 deletions check/src/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,12 @@ impl DeployConfig {

if verbose {
let gas = format_gas(receipt.gas_used.unwrap_or_default());
greyln!("deployed code: {address} {} {gas}", "with".grey());
greyln!(
"deployed code at address: {address} {} {gas}",
"with".grey()
);
} else {
greyln!("deployed code: {address}");
greyln!("deployed code at address: {address}");
}
Ok(contract)
}
Expand Down Expand Up @@ -181,7 +184,7 @@ impl DeployConfig {
greyln!("activated with {gas}");
}
greyln!(
"ready onchain: {}",
"program activated and ready onchain with tx hash: {}",
receipt.transaction_hash.debug_lavender()
);
Ok(())
Expand Down
18 changes: 16 additions & 2 deletions replay/src/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#![allow(clippy::redundant_closure_call)]

use alloy_primitives::{Address, TxHash, B256, U256};
use alloy_primitives::{Address, FixedBytes, TxHash, B256, U256};
use cargo_stylus_util::color::{Color, DebugColor};
use ethers::{
providers::{JsonRpcClient, Middleware, Provider},
Expand Down Expand Up @@ -236,6 +236,13 @@ impl TraceFrame {
key: read_b256!(args),
value: read_b256!(args),
},
"storage_cache_bytes32" => StorageCacheBytes32 {
key: read_b256!(args),
value: read_b256!(args),
},
"storage_flush_cache" => StorageFlushCache {
clear: read_u8!(args),
},
"account_balance" => AccountBalance {
address: read_address!(args),
balance: read_u256!(outs),
Expand Down Expand Up @@ -352,7 +359,7 @@ impl TraceFrame {
"console_log" => ConsoleLog {
text: read_string!(args),
},
x => todo!("Missing hostio {x}"),
x => todo!("Missing hostio details {x}"),
};

assert!(args.is_empty(), "{name}");
Expand Down Expand Up @@ -397,6 +404,13 @@ pub enum HostioKind {
key: B256,
value: B256,
},
StorageCacheBytes32 {
key: FixedBytes<32>,

Check warning on line 408 in replay/src/trace.rs

View workflow job for this annotation

GitHub Actions / clippy

fields `key` and `value` are never read

warning: fields `key` and `value` are never read --> replay/src/trace.rs:408:9 | 407 | StorageCacheBytes32 { | ------------------- fields in this variant 408 | key: FixedBytes<32>, | ^^^ 409 | value: FixedBytes<32>, | ^^^^^
value: FixedBytes<32>,
},
StorageFlushCache {
clear: u8,

Check warning on line 412 in replay/src/trace.rs

View workflow job for this annotation

GitHub Actions / clippy

field `clear` is never read

warning: field `clear` is never read --> replay/src/trace.rs:412:9 | 411 | StorageFlushCache { | ----------------- field in this variant 412 | clear: u8, | ^^^^^
},
AccountBalance {
address: Address,
balance: U256,
Expand Down

0 comments on commit 4cb81fd

Please sign in to comment.