feat(testing): Improve SDK Testing module (#148)
* feat: import to tycho simulation initialized accounts defined on yaml file * feat: update tycho-simulation dep, black formatting * feat: Add additional logging to test runner * feat: Fail test if expected component fails to get decoded * feat: Warn if initialized contracts are not specified on ProtocolComponent contracts
This commit is contained in:
@@ -31,7 +31,10 @@ class ProtocolComponentExpectation(BaseModel):
|
||||
@validator("static_attributes", pre=True, always=True)
|
||||
def convert_static_attributes_to_hexbytes(cls, v):
|
||||
if v:
|
||||
return {k: v[k] if isinstance(v[k], HexBytes) else HexBytes(v[k].lower()) for k in v}
|
||||
return {
|
||||
k: v[k] if isinstance(v[k], HexBytes) else HexBytes(v[k].lower())
|
||||
for k in v
|
||||
}
|
||||
return {}
|
||||
|
||||
@validator("creation_tx", pre=True, always=True)
|
||||
|
||||
Reference in New Issue
Block a user