Skip to content

Commit

Permalink
chore: small changes for PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
wainola committed Nov 13, 2023
1 parent d1b39a6 commit b01ee11
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
5 changes: 2 additions & 3 deletions examples/evm-to-evm-fungible-transfer/src/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ const getStatus = async (

return data as { status: string; explorerUrl: string };
} catch (e) {
console.log("error", e);
console.log("indexing and retrying");
console.log("error:", e);
}
};

Expand Down Expand Up @@ -76,7 +75,7 @@ export async function erc20Transfer(): Promise<void> {
}
})
.catch((e) => {
console.log(e);
console.log("error:", e);
console.log("Transfer still not indexed, retrying...");
});

Expand Down
3 changes: 1 addition & 2 deletions examples/evm-to-evm-generic-mesage-passing/src/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ const getStatus = async (

return data as { status: string; explorerUrl: string };
} catch (e) {
console.log("error", e);
console.log("indexing and retrying");
console.log("error: ", e);
}
};

Expand Down
3 changes: 1 addition & 2 deletions examples/evm-to-substrate-fungible-transfer/src/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ const getStatus = async (

return data as { status: string; explorerUrl: string };
} catch (e) {
console.log("error", e);
console.log("indexing and retrying");
console.log("error: ", e);
}
};

Expand Down
5 changes: 2 additions & 3 deletions examples/substrate-to-evm-fungible-transfer/src/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ const getStatus = async (

return data as { status: string; explorerUrl: string };
} catch (e) {
console.log("error", e);
console.log("indexing and retrying");
console.log("error: ", e);
}
};

Expand Down Expand Up @@ -82,7 +81,7 @@ const substrateTransfer = async (): Promise<void> => {
let dataResponse: undefined | { status: string; explorerUrl: string };

const id = setInterval(() => {
getStatus(transferTx)
getStatus(status.asInBlock.toString())
.then((data) => {
if (data) {
dataResponse = data;
Expand Down

0 comments on commit b01ee11

Please sign in to comment.