Skip to content

Commit

Permalink
Update snet_gate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DaddyWesker authored Oct 25, 2024
1 parent 67ded73 commit 1589753
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions python/hyperon/exts/snet_io/snet_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __call__(self, command_a, *args_a):
service_client = self.create_service_client(*args, **kwargs)
return [service_client.get_operation_atom()]
return [E(S('Error'), E(S('snet-sdk'), command_a, *args_a),
ValueAtom(f'unknown command {repr(command_a)}'))]
ValueAtom(f'unknown command {repr(command_a)}'))]


class ServiceCall:
Expand Down Expand Up @@ -139,10 +139,7 @@ def get_service_messages(self):

def get_operation_atom(self):
return OperationAtom(self.service_details[1], self)

def generate_callers_text(self):
return self.__pretty_print_atoms__(self.generate_callers())


def open_channel_and_deposit(self, amount, expiration):
self.service_client.deposit_and_open_channel(amount, expiration)
return [E()]
Expand Down

0 comments on commit 1589753

Please sign in to comment.