Skip to content

Commit

Permalink
fix comma, fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin committed Mar 23, 2022
1 parent 8b54442 commit 78aa402
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion algosdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from . import algod
from . import auction
from . import constants
from . import dryrun_results
from . import encoding
from . import error
from . import future
Expand All @@ -15,6 +16,5 @@
from . import v2client
from . import wallet
from . import wordlist
from . import dryrun_results

name = "algosdk"
13 changes: 9 additions & 4 deletions algosdk/dryrun_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ def __init__(self, dr):
"logic-sig-disassembly",
"logs",
]

def attrname(field):
return field.replace("-","_")
return field.replace("-", "_")

for field in optionals:
setattr(self, attrname(field), dr.get(field))

Expand All @@ -56,12 +57,16 @@ def attrname(field):
if trace_field in dr:
setattr(
self,
attrname(trace_field)
attrname(trace_field),
DryrunTrace(dr[trace_field]),
)

def app_call_rejected(self) -> bool:
return False if self.app_call_messages is None else "REJECT" in self.app_call_messages
return (
False
if self.app_call_messages is None
else "REJECT" in self.app_call_messages
)

def logic_sig_rejected(self) -> bool:
if self.logic_sig_messages is not None:
Expand Down

0 comments on commit 78aa402

Please sign in to comment.