Skip to content

Commit

Permalink
tweak: Replace eager with preinterpret
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedey committed Feb 1, 2025
1 parent 8e93680 commit 6730118
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 586 deletions.
11 changes: 11 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ ouroboros = { version = "0.17.2" }
paste = { version = "1.0.13" }
perfcnt = { version = "0.8.0" }
plotters = { version = "0.3.4" }
preinterpret = { version = "0.2.0" }
proc-macro2 = { version = "1.0.38" }
quote = { version = "1.0.18" }
radix-wasm-instrument = { version = "1.0.0", default-features = false, features = ["ignore_custom_section"]}
Expand Down
2 changes: 1 addition & 1 deletion radix-engine/src/system/system_db_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ impl<'a, S: SubstateDatabase + ?Sized> SystemDatabaseReader<'a, S> {
payload: &[u8],
payload_schema: &'b ResolvedPayloadSchema,
depth_limit: usize,
) -> Result<(), LocatedValidationError<ScryptoCustomExtension>> {
) -> Result<(), LocatedValidationError<'b, ScryptoCustomExtension>> {
let validation_context: Box<dyn ValidationContext<Error = String>> =
Box::new(ValidationPayloadCheckerContext {
reader: self,
Expand Down
1 change: 1 addition & 0 deletions radix-rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ repository = "https://github.com/radixdlt/radixdlt-scrypto"
serde = { workspace = true, optional = true }
hashbrown = { workspace = true, optional = true }
indexmap = { workspace = true }
preinterpret = { workspace = true }

[features]
default = ["std"]
Expand Down
1 change: 1 addition & 0 deletions radix-rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ pub mod prelude {
pub use crate::slice::*;

pub use crate::assert_matches;
pub use preinterpret::preinterpret;
}
Loading

0 comments on commit 6730118

Please sign in to comment.