Skip to content

Commit

Permalink
enable solana single method tests in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
erwin-wee committed Apr 25, 2024
1 parent 7387cc6 commit 8fa6ff2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions chainbench/user/methods/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
from .common import get_subclass_functions
from .ethereum import EthBeaconMethods
from .evm import EvmMethods
from .solana import SolanaMethods

__all__ = [
"EthBeaconMethods",
"EvmMethods",
"SolanaMethods",
"get_subclass_functions",
"all_method_classes",
"all_methods",
Expand All @@ -18,6 +20,7 @@
all_method_classes: list[Type[EthBeaconMethods | EvmMethods]] = [
EthBeaconMethods,
EvmMethods,
SolanaMethods,
]


Expand Down
2 changes: 1 addition & 1 deletion chainbench/user/methods/solana.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SolanaMethods(SolanaUser):
def task_to_method(task_name: str) -> str:
task_name_stripped = task_name.replace("_task", "")
words = task_name_stripped.split("_")
method = "".join([words[1]] + [word.capitalize() for word in words[2:]])
method = "".join([words[0]] + [word.capitalize() for word in words[1:]])
return method

def method_to_task_function(self, method: str) -> t.Callable:
Expand Down

0 comments on commit 8fa6ff2

Please sign in to comment.