admin_ should be unimplemented cost
This commit is contained in:
parent
cceee646ad
commit
c00eebeb32
@ -23,6 +23,9 @@ impl ComputeUnit {
|
||||
let cu = if method.starts_with("ots_") {
|
||||
// TODO: refine the different methods
|
||||
1000
|
||||
} else if method.starts_with("admin_") {
|
||||
// maybe charge extra since they are doing things they aren't supposed to
|
||||
return Self::unimplemented();
|
||||
} else {
|
||||
match (chain_id, method) {
|
||||
(1101, "zkevm_batchNumber") => 0,
|
||||
|
Loading…
Reference in New Issue
Block a user