Skip to content

Commit 25be270

Browse files
committed
style: prettier@2.3.2 formatting
1 parent a7e2fe5 commit 25be270

1 file changed

Lines changed: 18 additions & 10 deletions

File tree

clients/js/src/chains/sui/__tests__/sui-utils.test.ts

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
trimSuiType,
1515
} from "../../../sdk/sui";
1616

17-
1817
// The gRPC envelope shape consumed by toSuiTransactionResult. Cast at the call
1918
// site since hand-building the SDK's include-parameterized type is unnecessary
2019
// for exercising the mapping.
@@ -162,9 +161,12 @@ describe("getOriginalAssetSui", () => {
162161
});
163162

164163
it("parses a wrapped asset from token registry", async () => {
165-
const tokenBridgeStateId = "0x26efee2b51c911237888e5dc6702868abca3c7ac12c53f76ef8dc369bad5de42";
166-
const registryId = "0x8f52cdc82ea6b81c8bfbffa76a82ee88076b9a2e89c6ba08b5bb7e9a2badc00c";
167-
const coinType = "0x1234567890123456789012345678901234567890123456789012345678901234::coin::COIN";
164+
const tokenBridgeStateId =
165+
"0x26efee2b51c911237888e5dc6702868abca3c7ac12c53f76ef8dc369bad5de42";
166+
const registryId =
167+
"0x8f52cdc82ea6b81c8bfbffa76a82ee88076b9a2e89c6ba08b5bb7e9a2badc00c";
168+
const coinType =
169+
"0x1234567890123456789012345678901234567890123456789012345678901234::coin::COIN";
168170
const tokenAddress = Buffer.from(
169171
"0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20",
170172
"hex"
@@ -220,8 +222,10 @@ describe("getOriginalAssetSui", () => {
220222
});
221223

222224
it("parses a native asset from token registry", async () => {
223-
const tokenBridgeStateId = "0x26efee2b51c911237888e5dc6702868abca3c7ac12c53f76ef8dc369bad5de42";
224-
const registryId = "0x8f52cdc82ea6b81c8bfbffa76a82ee88076b9a2e89c6ba08b5bb7e9a2badc00c";
225+
const tokenBridgeStateId =
226+
"0x26efee2b51c911237888e5dc6702868abca3c7ac12c53f76ef8dc369bad5de42";
227+
const registryId =
228+
"0x8f52cdc82ea6b81c8bfbffa76a82ee88076b9a2e89c6ba08b5bb7e9a2badc00c";
225229
const coinType = "0x2::sui::SUI";
226230
const tokenAddress = Buffer.alloc(32, 0);
227231

@@ -269,7 +273,8 @@ describe("getOriginalAssetSui", () => {
269273
});
270274

271275
it("throws on invalid coin type", async () => {
272-
const tokenBridgeStateId = "0x26efee2b51c911237888e5dc6702868abca3c7ac12c53f76ef8dc369bad5de42";
276+
const tokenBridgeStateId =
277+
"0x26efee2b51c911237888e5dc6702868abca3c7ac12c53f76ef8dc369bad5de42";
273278

274279
await expect(
275280
getOriginalAssetSui(mockClient, tokenBridgeStateId, "invalid::type")
@@ -279,9 +284,12 @@ describe("getOriginalAssetSui", () => {
279284
});
280285

281286
it("throws when token is not registered", async () => {
282-
const tokenBridgeStateId = "0x26efee2b51c911237888e5dc6702868abca3c7ac12c53f76ef8dc369bad5de42";
283-
const registryId = "0x8f52cdc82ea6b81c8bfbffa76a82ee88076b9a2e89c6ba08b5bb7e9a2badc00c";
284-
const coinType = "0x1234567890123456789012345678901234567890123456789012345678901234::coin::COIN";
287+
const tokenBridgeStateId =
288+
"0x26efee2b51c911237888e5dc6702868abca3c7ac12c53f76ef8dc369bad5de42";
289+
const registryId =
290+
"0x8f52cdc82ea6b81c8bfbffa76a82ee88076b9a2e89c6ba08b5bb7e9a2badc00c";
291+
const coinType =
292+
"0x1234567890123456789012345678901234567890123456789012345678901234::coin::COIN";
285293

286294
(mockClient.getObject as jest.Mock).mockResolvedValueOnce({
287295
object: {

0 commit comments

Comments
 (0)