From 50fc4a7c76c8b6aa048c84645ece81528592f17b Mon Sep 17 00:00:00 2001 From: Francesco Date: Tue, 2 Jul 2024 09:49:34 +0200 Subject: [PATCH 1/2] Add missing error types --- Cargo.toml | 8 ++++---- src/did/src/error.rs | 10 ++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9af167be..9ac07ec3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ homepage = "https://github.com/bitfinity-network/bitfinity-evm-sdk" include = ["src/**/*", "LICENSE", "README.md"] license = "MIT" repository = "https://github.com/bitfinity-network/bitfinity-evm-sdk" -version = "0.26.0" +version = "0.27.0" [workspace.dependencies] alloy-primitives = { version = "0.7", default-feures = false } @@ -50,12 +50,12 @@ ic-log = { git = "https://github.com/bitfinity-network/canister-sdk", package = ic-stable-structures = { git = "https://github.com/bitfinity-network/canister-sdk", package = "ic-stable-structures", tag = "v0.17.x" } itertools = "0.13" jsonrpc-core = "18.0" -jsonrpsee = { version = "0.22", features = ["server", "macros"] } +jsonrpsee = { version = "0.23", features = ["server", "macros"] } lightspeed_scheduler = "0.58" log = "0.4" num = "0.4" once_cell = "1.16" -ordinals = "0.0.7" +ordinals = "0.0.8" port_check = "0.2" rand = { version = "0.8", features = ["std_rng", "small_rng"] } reqwest = { version = "0.12", default-features = false } @@ -73,7 +73,7 @@ sqlx = { version = "0.7", default-features = false, features = [ "runtime-tokio", ] } tempfile = "3" -testcontainers = { package = "testcontainers-modules", version = "0.5", features = [ +testcontainers = { package = "testcontainers-modules", version = "0.7", features = [ "postgres", ] } thiserror = "1.0" diff --git a/src/did/src/error.rs b/src/did/src/error.rs index eb21adc9..1a9febf1 100644 --- a/src/did/src/error.rs +++ b/src/did/src/error.rs @@ -63,6 +63,9 @@ pub enum EvmError { #[error("The transaction has been reverted: {0}")] TransactionReverted(String), + + #[error("Precompile: {0}")] + Precompile(String), } /// Variant of `TransactionPool` error @@ -202,6 +205,13 @@ pub enum HaltError { CreateInitcodeSizeLimit, InvalidChainId, StateChangeDuringStaticCall, + + /// Aux data overflow, new aux data is larger tha u16 max size. + EofAuxDataOverflow, + /// Aud data is smaller then already present data size. + EofAuxDataTooSmall, + /// EOF Subroutine stack overflow + EOFFunctionStackOverflow, } #[derive( From 6397c464ab3222038bc0a2f19db0ea0a63c1e9fb Mon Sep 17 00:00:00 2001 From: Francesco Date: Tue, 2 Jul 2024 09:54:23 +0200 Subject: [PATCH 2/2] typo --- src/did/src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/did/src/error.rs b/src/did/src/error.rs index 1a9febf1..3a0fde19 100644 --- a/src/did/src/error.rs +++ b/src/did/src/error.rs @@ -208,7 +208,7 @@ pub enum HaltError { /// Aux data overflow, new aux data is larger tha u16 max size. EofAuxDataOverflow, - /// Aud data is smaller then already present data size. + /// Aux data is smaller then already present data size. EofAuxDataTooSmall, /// EOF Subroutine stack overflow EOFFunctionStackOverflow,