Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

Conversation

patternmachine
Copy link
Contributor

The with = "terra_opt_u64_format" only applies when the actual field is present. So if the server reply does not include a sequence field (eg for a new account) then deserialization will just fall without the default

[2022-02-05T01:47:50Z ERROR do_swap] Reqwest HTTP(s) Error
[2022-02-05T01:47:50Z ERROR do_swap] because: error decoding response body: missing field `sequence` at line 1 column 144
[2022-02-05T01:47:50Z ERROR do_swap] because: missing field `sequence` at line 1 column 144

@PFC-developer PFC-developer merged commit 3dbb307 into PFC-Validator:main Feb 14, 2022
@PFC-developer
Copy link
Contributor

Thanks!

@patternmachine patternmachine deleted the authaccount-serde branch February 15, 2022 04:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants