Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions api/src/indexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,14 @@ fn address_to_string(a: &xdr::ScAddress) -> Result<String, IndexError> {
xdr::ScAddress::Contract(xdr::ContractId(xdr::Hash(bytes))) => {
Ok(stellar_strkey::Contract(*bytes).to_string())
}
// Muxed accounts and any future address variants are not expected from
// these contracts, but returning an error here would abort the entire
// refresh cycle via `?`. Emit a recognisable placeholder so callers
// can still process the rest of the response.
other => {
tracing::warn!("address_to_string: unsupported address variant, using placeholder: {other:?}");
Ok(format!("unknown:{other:?}"))
}
other => Err(IndexError::Unsupported(format!(
"unsupported address: {other:?}"
))),
Expand Down
Loading