Skip to content

Commit

Permalink
fix: limit call gas limit at 50M (#1301)
Browse files Browse the repository at this point in the history
* add call gas limit at 7M

* increase gas limit to 50M
  • Loading branch information
greged93 authored Jul 16, 2024
1 parent 2293a2b commit fab59e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 129 deletions.
126 changes: 0 additions & 126 deletions Cargo.lock

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

6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ reth-rpc-types = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.0.
] }
reth-rpc-types-compat = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.0.1", default-features = false }
reth-rpc-eth-types = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.0.1", default-features = false }
reth-rpc = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.0.1", default-features = false }
reth-revm = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.0.1", default-features = false }
reth-evm-ethereum = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.0.1", default-features = false }
reth-node-api = { git = "https://github.com/paradigmxyz/reth.git", tag = "v1.0.1", default-features = false }
Expand All @@ -89,7 +88,10 @@ futures = { version = "0.3", default-features = false }
itertools = { version = "0.13", default-features = false }
lazy_static = { version = "1", default-features = false }
log = { version = "0.4", default-features = false }
mongodb = { version = "3.0", default-features = false, features = ["rustls-tls", "compat-3-0-0"]}
mongodb = { version = "3.0", default-features = false, features = [
"rustls-tls",
"compat-3-0-0",
] }
thiserror = { version = "1", default-features = false }
tokio = { version = "1", features = ["macros"] }
tower = { version = "0.4", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion src/eth_provider/constant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ lazy_static! {
}

/// Gas limit for estimate gas and call
pub const CALL_REQUEST_GAS_LIMIT: u128 = 5_000_000;
pub const CALL_REQUEST_GAS_LIMIT: u128 = 50_000_000;
/// Number of characters for representing a U256 in a hex string form. Used for padding hashes
pub const HASH_HEX_STRING_LEN: usize = 64;
/// Number of characters for representing logs topics in a hex string form. Used for padding logs topics
Expand Down

0 comments on commit fab59e4

Please sign in to comment.