Skip to content

Commit

Permalink
Merge pull request #181 from bitfinity-network/add_missing_error_types
Browse files Browse the repository at this point in the history
Add missing error types
  • Loading branch information
ufoscout authored Jul 2, 2024
2 parents d0cd53a + 6397c46 commit ecfa69f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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 }
Expand All @@ -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"
Expand Down
10 changes: 10 additions & 0 deletions src/did/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -202,6 +205,13 @@ pub enum HaltError {
CreateInitcodeSizeLimit,
InvalidChainId,
StateChangeDuringStaticCall,

/// Aux data overflow, new aux data is larger tha u16 max size.
EofAuxDataOverflow,
/// Aux data is smaller then already present data size.
EofAuxDataTooSmall,
/// EOF Subroutine stack overflow
EOFFunctionStackOverflow,
}

#[derive(
Expand Down

0 comments on commit ecfa69f

Please sign in to comment.