Skip to content

Commit 4b8028a

Browse files
committed
lint
1 parent 806ec90 commit 4b8028a

File tree

3 files changed

+44
-36
lines changed

3 files changed

+44
-36
lines changed

packages/thirdweb/src/bridge/Buy.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ describe("Bridge.Buy.quote", () => {
2929
buyAmountWei: toWei("1000000000"),
3030
client: TEST_CLIENT,
3131
}),
32-
).rejects.toThrowErrorMatchingInlineSnapshot(`[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]`);
32+
).rejects.toThrowErrorMatchingInlineSnapshot(
33+
`[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]`,
34+
);
3335
});
3436
});
3537

@@ -65,6 +67,8 @@ describe("Bridge.Buy.prepare", () => {
6567
receiver: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
6668
client: TEST_CLIENT,
6769
}),
68-
).rejects.toThrowErrorMatchingInlineSnapshot(`[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]`);
70+
).rejects.toThrowErrorMatchingInlineSnapshot(
71+
`[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]`,
72+
);
6973
});
7074
});

packages/thirdweb/src/bridge/Sell.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ describe("Bridge.Sell.quote", () => {
2929
sellAmountWei: toWei("1000000000"),
3030
client: TEST_CLIENT,
3131
}),
32-
).rejects.toThrowErrorMatchingInlineSnapshot(`[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]`);
32+
).rejects.toThrowErrorMatchingInlineSnapshot(
33+
`[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]`,
34+
);
3335
});
3436
});
3537

@@ -65,6 +67,8 @@ describe("Bridge.Sell.prepare", () => {
6567
receiver: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
6668
client: TEST_CLIENT,
6769
}),
68-
).rejects.toThrowErrorMatchingInlineSnapshot(`[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]`);
70+
).rejects.toThrowErrorMatchingInlineSnapshot(
71+
`[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]`,
72+
);
6973
});
7074
});

packages/thirdweb/src/bridge/types/Status.ts

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,38 @@ import type { Address as ox__Address, Hex as ox__Hex } from "ox";
22

33
export type Status =
44
| {
5-
status: "COMPLETED";
6-
originAmount: bigint;
7-
destinationAmount: bigint;
8-
originChainId: number;
9-
destinationChainId: number;
10-
originTokenAddress: ox__Address.Address;
11-
destinationTokenAddress: ox__Address.Address;
12-
transactions: Array<{
13-
chainId: number;
14-
transactionHash: ox__Hex.Hex;
15-
}>;
16-
}
5+
status: "COMPLETED";
6+
originAmount: bigint;
7+
destinationAmount: bigint;
8+
originChainId: number;
9+
destinationChainId: number;
10+
originTokenAddress: ox__Address.Address;
11+
destinationTokenAddress: ox__Address.Address;
12+
transactions: Array<{
13+
chainId: number;
14+
transactionHash: ox__Hex.Hex;
15+
}>;
16+
}
1717
| {
18-
status: "PENDING";
19-
originAmount: bigint;
20-
originChainId: number;
21-
destinationChainId: number;
22-
originTokenAddress: ox__Address.Address;
23-
destinationTokenAddress: ox__Address.Address;
24-
transactions: Array<{
25-
chainId: number;
26-
transactionHash: ox__Hex.Hex;
27-
}>;
28-
}
18+
status: "PENDING";
19+
originAmount: bigint;
20+
originChainId: number;
21+
destinationChainId: number;
22+
originTokenAddress: ox__Address.Address;
23+
destinationTokenAddress: ox__Address.Address;
24+
transactions: Array<{
25+
chainId: number;
26+
transactionHash: ox__Hex.Hex;
27+
}>;
28+
}
2929
| {
30-
status: "FAILED";
31-
transactions: Array<{
32-
chainId: number;
33-
transactionHash: ox__Hex.Hex;
34-
}>;
35-
}
30+
status: "FAILED";
31+
transactions: Array<{
32+
chainId: number;
33+
transactionHash: ox__Hex.Hex;
34+
}>;
35+
}
3636
| {
37-
status: "NOT_FOUND";
38-
transactions: [];
39-
};
37+
status: "NOT_FOUND";
38+
transactions: [];
39+
};

0 commit comments

Comments
 (0)