-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error calling blockchain.atomicals.list #231
Comments
Which network is serving with? |
Mainnet |
The cause is |
Update the # Auto encodes data into structured bytes data.
def auto_encode_bytes_elements(state):
if isinstance(state, bytes):
return {"$b": state.hex(), "$len": sys.getsizeof(state), "$auto": True}
if isinstance(state, CBORTag):
dumped_bytes = dumps(state)
return auto_encode_bytes_elements(dumped_bytes)
if isinstance(state, list):
reformatted_list = []
for item in state:
reformatted_list.append(auto_encode_bytes_elements(item))
return reformatted_list
if isinstance(state, dict):
for key, value in state.items():
state[key] = auto_encode_bytes_elements(value)
+ # Handles unknown undefined type.
+ if type(state).__name__ == 'undefined_type':
+ return None
return state |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
url: 'http://localhost:8080/proxy/blockchain.atomicals.list',
data: '{"params":[50,84350,1]}'
The text was updated successfully, but these errors were encountered: