You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
msg.to_message_json(verifying_contract_domain) throws the following exception:
Traceback (most recent call last):
File "submit_proof.py", line 32, in <module>
print(msg.to_message_json(verifying_contract_domain))
File "/Users/anomit/.pyenv/versions/ev-cli/lib/python3.6/site-packages/eip712_structs/struct.py", line 188, in to_message_json
return json.dumps(message, cls=BytesJSONEncoder)
File "/Users/anomit/.pyenv/versions/3.6.5/lib/python3.6/json/__init__.py", line 238, in dumps
**kw).encode(obj)
File "/Users/anomit/.pyenv/versions/3.6.5/lib/python3.6/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/Users/anomit/.pyenv/versions/3.6.5/lib/python3.6/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/Users/anomit/.pyenv/versions/ev-cli/lib/python3.6/site-packages/eip712_structs/types.py", line 244, in default
return super(BytesJSONEncoder, self).default(o)
File "/Users/anomit/.pyenv/versions/3.6.5/lib/python3.6/json/encoder.py", line 180, in default
o.__class__.__name__)
TypeError: Object of type 'OrderedAttributesMeta' is not JSON serializable
Code in question:
msg.to_message_json(verifying_contract_domain)
throws the following exception:msg.signable_bytes(verifying_contract_domain)
throws:The text was updated successfully, but these errors were encountered: