Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
76 changes: 34 additions & 42 deletions Cargo.lock

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

20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -513,15 +513,15 @@ mpp = { git = "https://github.com/tempoxyz/mpp-rs", rev = "310c9a1f3fe485fa9c7a8
"client",
"reqwest-rustls-tls",
] }
tempo-chainspec = { git = "https://github.com/tempoxyz/tempo", rev = "39b9262", default-features = false }
tempo-primitives = { git = "https://github.com/tempoxyz/tempo", rev = "39b9262", default-features = false, features = [
tempo-chainspec = { git = "https://github.com/tempoxyz/tempo", rev = "04a29a5", default-features = false }
tempo-primitives = { git = "https://github.com/tempoxyz/tempo", rev = "04a29a5", default-features = false, features = [
"serde",
] }
tempo-alloy = { git = "https://github.com/tempoxyz/tempo", rev = "39b9262", default-features = false }
tempo-evm = { git = "https://github.com/tempoxyz/tempo", rev = "39b9262", default-features = false }
tempo-revm = { git = "https://github.com/tempoxyz/tempo", rev = "39b9262", default-features = false, features = ["serde"] }
tempo-contracts = { git = "https://github.com/tempoxyz/tempo", rev = "39b9262" }
tempo-precompiles = { git = "https://github.com/tempoxyz/tempo", rev = "39b9262" }
tempo-alloy = { git = "https://github.com/tempoxyz/tempo", rev = "04a29a5", default-features = false }
tempo-evm = { git = "https://github.com/tempoxyz/tempo", rev = "04a29a5", default-features = false }
tempo-revm = { git = "https://github.com/tempoxyz/tempo", rev = "04a29a5", default-features = false, features = ["serde"] }
tempo-contracts = { git = "https://github.com/tempoxyz/tempo", rev = "04a29a5" }
tempo-precompiles = { git = "https://github.com/tempoxyz/tempo", rev = "04a29a5" }

## Pinned dependencies. Enabled for the workspace in crates/test-utils.

Expand Down Expand Up @@ -608,9 +608,9 @@ alloy-op-hardforks = { git = "https://github.com/foundry-rs/optimism", branch =
# foundry-fork-db = { git = "https://github.com/foundry-rs/foundry-fork-db", rev = "b139c57c2b54bc06a9e4c9783941f5bbd4bd3a1f" }

## tempo — unify crates.io versions (pulled by mpp) with git rev
tempo-primitives = { git = "https://github.com/tempoxyz/tempo", rev = "39b9262" }
tempo-alloy = { git = "https://github.com/tempoxyz/tempo", rev = "39b9262" }
tempo-contracts = { git = "https://github.com/tempoxyz/tempo", rev = "39b9262" }
tempo-primitives = { git = "https://github.com/tempoxyz/tempo", rev = "04a29a5" }
tempo-alloy = { git = "https://github.com/tempoxyz/tempo", rev = "04a29a5" }
tempo-contracts = { git = "https://github.com/tempoxyz/tempo", rev = "04a29a5" }

# solar
solar = { package = "solar-compiler", git = "https://github.com/paradigmxyz/solar", rev = "530f129" }
Expand Down
1 change: 1 addition & 0 deletions crates/evm/evm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ revm = { workspace = true, default-features = false, features = [
] }
revm-inspectors.workspace = true
tempo-precompiles.workspace = true
tempo-primitives.workspace = true

eyre.workspace = true
parking_lot.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions crates/evm/evm/src/inspectors/tempo_labels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use revm::{
inspector::JournalExt,
interpreter::{CallInputs, CallOutcome, interpreter::EthInterpreter},
};
use tempo_precompiles::tip20::is_tip20_prefix;
use tempo_primitives::TempoAddressExt;

/// Inspector that labels TIP20 token precompile addresses with their on-chain names.
///
Expand All @@ -25,7 +25,7 @@ where
CTX::Journal: JournalExt,
{
fn call(&mut self, ctx: &mut CTX, inputs: &mut CallInputs) -> Option<CallOutcome> {
if is_tip20_prefix(inputs.target_address)
if inputs.target_address.is_tip20()
&& !self.labels.contains_key(&inputs.target_address)
{
let bytes = ctx
Expand Down
Loading