Skip to content

Commit 581c2f0

Browse files
authored
Store full CollectionId in V2 receipt database records (#817)
Remove `.as_address()` call that was truncating 32-byte CollectionId to 20-byte address, causing parsing issues in tap-agent notifications.
1 parent ddd6532 commit 581c2f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/service/src/tap/receipt_store.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,9 @@ impl DbReceiptV2 {
345345
receipt: &tap_graph::v2::SignedReceipt,
346346
separator: &Eip712Domain,
347347
) -> anyhow::Result<Self> {
348-
let collection_id = thegraph_core::CollectionId::from(receipt.message.collection_id)
349-
.as_address()
350-
.encode_hex();
348+
let collection_id =
349+
thegraph_core::CollectionId::from(receipt.message.collection_id).encode_hex();
350+
351351
let payer = receipt.message.payer.encode_hex();
352352
let data_service = receipt.message.data_service.encode_hex();
353353
let service_provider = receipt.message.service_provider.encode_hex();

0 commit comments

Comments
 (0)