Skip to content

Commit ab078b0

Browse files
authored
fix: Switch CCTP service to use raw_message_dispatch (#7742)
Co-authored-by: Danil Nemirovsky <4614623+ameten@users.noreply.github.com>
1 parent 52fd0f8 commit ab078b0

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

.changeset/real-poems-fetch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hyperlane-xyz/ccip-server': patch
3+
---
4+
5+
Switch Offchain Lookup Server to use raw message dispatch table

typescript/ccip-server/src/services/HyperlaneService.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,12 @@ class HyperlaneService {
6666

6767
const body = JSON.stringify({
6868
query: `query ($search: bytea) {
69-
message_view(
69+
raw_message_dispatch(
7070
where: { msg_id: {_eq: $search} }
7171
limit: 1
7272
) {
73-
id
7473
msg_id
75-
nonce
76-
sender
77-
recipient
78-
is_delivered
79-
origin_tx_id
8074
origin_tx_hash
81-
origin_tx_sender
8275
}
8376
}`,
8477
variables: {
@@ -111,7 +104,9 @@ class HyperlaneService {
111104
);
112105
}
113106

114-
const responseAsJson = (await response.json())['data']['message_view'];
107+
const responseAsJson = (await response.json())['data'][
108+
'raw_message_dispatch'
109+
];
115110

116111
if (responseAsJson.length > 0) {
117112
const txHash = responseAsJson[0]?.origin_tx_hash.replace('\\x', '0x');

0 commit comments

Comments
 (0)