Skip to content

Commit 0b18dd4

Browse files
authored
feat(rpc): protect omni_estimateUserOpGas method (#3657)
Added "omni_estimateUserOpGas" to the PROTECTED_METHODS array in the RPC server. This ensures that the method is now access-controlled alongside other sensitive RPC methods.
1 parent d38288f commit 0b18dd4

File tree

1 file changed

+2
-1
lines changed
  • tee-worker/omni-executor/rpc-server/src/methods

1 file changed

+2
-1
lines changed

tee-worker/omni-executor/rpc-server/src/methods/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use pumpx::*;
77
mod omni;
88
use omni::*;
99

10-
pub const PROTECTED_METHODS: [&str; 8] = [
10+
pub const PROTECTED_METHODS: [&str; 9] = [
1111
"omni_testProtectedMethod",
1212
"omni_addWallet",
1313
"omni_notifyLimitOrderResult",
@@ -16,6 +16,7 @@ pub const PROTECTED_METHODS: [&str; 8] = [
1616
"omni_submitUserOp",
1717
"omni_transferWithdraw",
1818
"omni_exportWallet",
19+
"omni_estimateUserOpGas",
1920
];
2021

2122
pub fn register_methods(module: &mut RpcModule<RpcContext>) {

0 commit comments

Comments
 (0)