fix length

This commit is contained in:
Bryan Stitt 2022-07-11 19:51:56 +00:00
parent 23a545177f
commit 057afec3e1

View File

@ -90,7 +90,7 @@ impl Serialize for Web3Connection {
S: Serializer,
{
// 3 is the number of fields in the struct.
let mut state = serializer.serialize_struct("Web3Connection", 1)?;
let mut state = serializer.serialize_struct("Web3Connection", 3)?;
// TODO: sanitize any credentials in the url
state.serialize_field("url", &self.url)?;