Handling edge-case for when no vesting accounts exist (#2888)
This commit is contained in:
committed by
GitHub
parent
b2ed078e0f
commit
a693fa9190
@@ -189,6 +189,9 @@ impl Client {
|
||||
.nyxd
|
||||
.query_contract_raw(vesting_contract, b"key".to_vec())
|
||||
.await?;
|
||||
if res.is_empty() {
|
||||
return Ok(0);
|
||||
}
|
||||
|
||||
Ok(serde_json::from_slice(&res).map_err(NyxdError::from)?)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user