Skip to content

Commit

Permalink
ts expect error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Wozacosta committed Jan 16, 2025
1 parent 064b9c2 commit 28b345b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const getTransactions = async (
): Promise<AccountTxResponse["transactions"]> => {
const { data } = await network<AccountTxResponse>({
// NOTE: add INDEXER_BOILERPLATE to libs/env/src/env.ts
// @ts-expect-error
// @ts-expect-error: add INDEXER_BOILERPLATE to libs/env/src/env.ts
url: `${getEnv("INDEXER_BOILERPLATE")}/account/${address}/transactions`,
method: "GET",
});
Expand Down
10 changes: 5 additions & 5 deletions libs/coin-modules/coin-module-boilerplate/src/network/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const getNodeUrl = () => coinConfig.getCoinConfig().nodeUrl;

// txPayload needs to be unsigned
export const simulate = async (serializedTx: string): Promise<number> => {
// @ts-expect-error
// @ts-expect-error: add NODE_BOILERPLATE to libs/env/src/env.ts
const url = `${getEnv("NODE_BOILERPLATE")}/simulate`;
const { data } = await network({
url,
Expand All @@ -24,7 +24,7 @@ export const simulate = async (serializedTx: string): Promise<number> => {

// can be called nonce or sequence
export const getNextSequence = async (address: string): Promise<number> => {
// @ts-expect-error
// @ts-expect-error: add NODE_BOILERPLATE to libs/env/src/env.ts
const url = `${getEnv("NODE_BOILERPLATE")}/${address}/sequence`;
try {
const { data } = await network({
Expand All @@ -38,7 +38,7 @@ export const getNextSequence = async (address: string): Promise<number> => {
};

export const getBlockHeight = async (): Promise<number> => {
// @ts-expect-error
// @ts-expect-error: add NODE_BOILERPLATE to libs/env/src/env.ts
const url = `${getEnv("NODE_BOILERPLATE")}/blockheight`;
const { data } = await network({
url,
Expand All @@ -52,7 +52,7 @@ export const getLastBlock = async (): Promise<{
blockHash: string;
timestamp: number;
}> => {
// @ts-expect-error
// @ts-expect-error: add NODE_BOILERPLATE to libs/env/src/env.ts
const url = `${getEnv("NODE_BOILERPLATE")}/block/current`;
const { data } = await network({
url,
Expand All @@ -62,7 +62,7 @@ export const getLastBlock = async (): Promise<{
};

export const submit = async (signedTx: string): Promise<SubmitReponse> => {
// @ts-expect-error
// @ts-expect-error: add NODE_BOILERPLATE to libs/env/src/env.ts
const url = `${getEnv("NODE_BOILERPLATE")}/submit`;
const { data } = await network<SubmitReponse>({
url,
Expand Down

0 comments on commit 28b345b

Please sign in to comment.