Skip to content

Commit

Permalink
Fix GRPC querystate endpoint (#4707)
Browse files Browse the repository at this point in the history
* Update mapping_grpc.rs

* fmt

* fix
  • Loading branch information
Leo-Besancon committed Jun 13, 2024
1 parent cc3c52c commit 37e9307
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions massa-execution-exports/src/mapping_grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,14 @@ pub fn to_querystate_filter(
Address::from_str(&value.address)?,
))
}
exec::RequestItem::AddressBytecodeFinal(value) => {
Ok(ExecutionQueryRequestItem::AddressBytecodeCandidate(
Address::from_str(&value.address)?,
))
}
exec::RequestItem::AddressBytecodeFinal(value) => Ok(
ExecutionQueryRequestItem::AddressBytecodeFinal(Address::from_str(&value.address)?),
),
exec::RequestItem::AddressDatastoreKeysCandidate(value) => {
Ok(ExecutionQueryRequestItem::AddressBytecodeCandidate(
Address::from_str(&value.address)?,
))
Ok(ExecutionQueryRequestItem::AddressDatastoreKeysCandidate {
addr: Address::from_str(&value.address)?,
prefix: value.prefix,
})
}
exec::RequestItem::AddressDatastoreKeysFinal(value) => {
Ok(ExecutionQueryRequestItem::AddressDatastoreKeysFinal {
Expand Down

0 comments on commit 37e9307

Please sign in to comment.