Skip to content

Commit

Permalink
bugfix: remote chain id
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Jul 30, 2024
1 parent df3c18a commit f4bd172
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apollo/src/lnv3/source/envio.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Lnv3EnvioService extends SourceService {
chainId: number,
transferId: string
): Promise<Lnv3WithdrawStatus> {
const query = `query { Lnv3TransferRecord(where: { id: { _eq: "${transferId}" }, localChainId: {_eq: ${chainId}}}) { id, hasWithdrawn }}`;
const query = `query { Lnv3TransferRecord(where: { id: { _eq: "${transferId}" }, localChainId: {_eq: ${chainId}}}) { id, remoteChainId, hasWithdrawn }}`;
return await axios
.post(url, {
query: query,
Expand Down
2 changes: 1 addition & 1 deletion apollo/src/lnv3/source/ponder.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class Lnv3PonderService extends SourceService {
transferId: string
): Promise<Lnv3WithdrawStatus> {
const id = `${localId}-${transferId}`;
const query = `query { lnv3TransferRecord(id: "${id}") { id, hasWithdrawn }}`;
const query = `query { lnv3TransferRecord(id: "${id}") { id, remoteChainId, hasWithdrawn }}`;
return await axios
.post(url, {
query: query,
Expand Down
2 changes: 1 addition & 1 deletion apollo/src/lnv3/source/thegraph.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Lnv3ThegraphService extends SourceService {
chainId: number,
transferId: string
): Promise<Lnv3WithdrawStatus> {
const query = `query { lnv3TransferRecord(id: "${transferId}") { id, hasWithdrawn }}`;
const query = `query { lnv3TransferRecord(id: "${transferId}") { id, remoteChainId, hasWithdrawn }}`;
return await axios
.post(url, {
query: query,
Expand Down

0 comments on commit f4bd172

Please sign in to comment.