Skip to content

Commit f535cdc

Browse files
fix lint
1 parent f867907 commit f535cdc

File tree

2 files changed

+49
-23
lines changed

2 files changed

+49
-23
lines changed

packages/cactus-plugin-satp-hermes/src/test/typescript/integration/gateway/satp-e2e-transfer-1-gateway-with-api-server.test.ts

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,10 @@ describe("SATPGateway sending a Non Fungible token from Besu to Ethereum", () =>
684684
jest.setTimeout(TIMEOUT);
685685
const tokenUniqueDescriptor = "1001";
686686
it("should mint a non fungible token to the owner account", async () => {
687-
await besuEnv.mintTokens(tokenUniqueDescriptor, TokenTypeMain.NONSTANDARD_NONFUNGIBLE);
687+
await besuEnv.mintTokens(
688+
tokenUniqueDescriptor,
689+
TokenTypeMain.NONSTANDARD_NONFUNGIBLE,
690+
);
688691
await besuEnv.checkBalance(
689692
besuEnv.getTestNonFungibleContractName(),
690693
besuEnv.getTestNonFungibleContractAddress(),
@@ -789,7 +792,9 @@ describe("SATPGateway sending a Non Fungible token from Besu to Ethereum", () =>
789792
);
790793
}
791794

792-
log.debug(`Approved non fungible token ${tokenUniqueDescriptor} to the Besu Bridge Address`);
795+
log.debug(
796+
`Approved non fungible token ${tokenUniqueDescriptor} to the Besu Bridge Address`,
797+
);
793798

794799
const reqApproveEthereumAddress = await approveAddressApi.getApproveAddress(
795800
ethereumEnv.network,
@@ -832,7 +837,9 @@ describe("SATPGateway sending a Non Fungible token from Besu to Ethereum", () =>
832837
"0",
833838
besuEnv.getTestOwnerSigningCredential(),
834839
);
835-
log.info("Non fungible token was transferred correctly from the Owner account at Besu");
840+
log.info(
841+
"Non fungible token was transferred correctly from the Owner account at Besu",
842+
);
836843

837844
await besuEnv.checkBalance(
838845
besuEnv.getTestNonFungibleContractName(),
@@ -842,7 +849,9 @@ describe("SATPGateway sending a Non Fungible token from Besu to Ethereum", () =>
842849
"0",
843850
besuEnv.getTestOwnerSigningCredential(),
844851
);
845-
log.info("Non fungible token was transferred correctly from the Wrapper account at Besu");
852+
log.info(
853+
"Non fungible token was transferred correctly from the Wrapper account at Besu",
854+
);
846855

847856
await ethereumEnv.checkBalance(
848857
ethereumEnv.getTestNonFungibleContractName(),
@@ -852,7 +861,9 @@ describe("SATPGateway sending a Non Fungible token from Besu to Ethereum", () =>
852861
"0",
853862
ethereumEnv.getTestOwnerSigningCredential(),
854863
);
855-
log.info("Non fungible token was transferred correctly from the Bridge account at Ethereum");
864+
log.info(
865+
"Non fungible token was transferred correctly from the Bridge account at Ethereum",
866+
);
856867

857868
await ethereumEnv.checkBalance(
858869
ethereumEnv.getTestNonFungibleContractName(),
@@ -862,8 +873,10 @@ describe("SATPGateway sending a Non Fungible token from Besu to Ethereum", () =>
862873
"1",
863874
ethereumEnv.getTestOwnerSigningCredential(),
864875
);
865-
log.info("Non fungible token was transferred correctly to the Owner account at Ethereum");
876+
log.info(
877+
"Non fungible token was transferred correctly to the Owner account at Ethereum",
878+
);
866879

867880
await gateway.shutdown();
868881
});
869-
});
882+
});

packages/cactus-plugin-satp-hermes/src/test/typescript/integration/gateway/satp-e2e-transfer-2-gateway-with-api-server.test.ts

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -961,16 +961,19 @@ describe("2 SATPGateways sending a non fungible token from Besu to Ethereum", ()
961961
jest.setTimeout(TIMEOUT);
962962
const tokenUniqueDescriptor = "1001";
963963
it("should mint a non fungible token to the owner account", async () => {
964-
await besuEnv.mintTokens(tokenUniqueDescriptor, TokenTypeMain.NONSTANDARD_NONFUNGIBLE);
965-
await besuEnv.checkBalance(
966-
besuEnv.getTestNonFungibleContractName(),
967-
besuEnv.getTestNonFungibleContractAddress(),
968-
besuEnv.getTestNonFungibleContractAbi(),
969-
besuEnv.getTestOwnerAccount(),
970-
"1",
971-
besuEnv.getTestOwnerSigningCredential(),
972-
);
973-
});
964+
await besuEnv.mintTokens(
965+
tokenUniqueDescriptor,
966+
TokenTypeMain.NONSTANDARD_NONFUNGIBLE,
967+
);
968+
await besuEnv.checkBalance(
969+
besuEnv.getTestNonFungibleContractName(),
970+
besuEnv.getTestNonFungibleContractAddress(),
971+
besuEnv.getTestNonFungibleContractAbi(),
972+
besuEnv.getTestOwnerAccount(),
973+
"1",
974+
besuEnv.getTestOwnerSigningCredential(),
975+
);
976+
});
974977
it("should realize a transfer", async () => {
975978
//setup satp gateway
976979
const factoryOptions: IPluginFactoryOptions = {
@@ -1138,7 +1141,9 @@ describe("2 SATPGateways sending a non fungible token from Besu to Ethereum", ()
11381141
throw new Error("Approve address is undefined");
11391142
}
11401143

1141-
log.debug(`Approved token ${tokenUniqueDescriptor} to the Besu Bridge Address`);
1144+
log.debug(
1145+
`Approved token ${tokenUniqueDescriptor} to the Besu Bridge Address`,
1146+
);
11421147

11431148
const reqApproveEthereumAddress =
11441149
await approveAddressApi2.getApproveAddress(
@@ -1199,7 +1204,7 @@ describe("2 SATPGateways sending a non fungible token from Besu to Ethereum", ()
11991204
ethereumEnv,
12001205
tokenUniqueDescriptor,
12011206
tokenUniqueDescriptor,
1202-
TokenTypeMain.NONSTANDARD_NONFUNGIBLE
1207+
TokenTypeMain.NONSTANDARD_NONFUNGIBLE,
12031208
);
12041209

12051210
const res = await satpApi1?.transact(req);
@@ -1222,7 +1227,9 @@ describe("2 SATPGateways sending a non fungible token from Besu to Ethereum", ()
12221227
"0",
12231228
besuEnv.getTestOwnerSigningCredential(),
12241229
);
1225-
log.info("Non fungible token was transferred correctly from the Owner account at Besu");
1230+
log.info(
1231+
"Non fungible token was transferred correctly from the Owner account at Besu",
1232+
);
12261233

12271234
await besuEnv.checkBalance(
12281235
besuEnv.getTestNonFungibleContractName(),
@@ -1232,7 +1239,9 @@ describe("2 SATPGateways sending a non fungible token from Besu to Ethereum", ()
12321239
"0",
12331240
besuEnv.getTestOwnerSigningCredential(),
12341241
);
1235-
log.info("Non fungible token was transferred correctly from the Wrapper account at Besu");
1242+
log.info(
1243+
"Non fungible token was transferred correctly from the Wrapper account at Besu",
1244+
);
12361245

12371246
await ethereumEnv.checkBalance(
12381247
ethereumEnv.getTestNonFungibleContractName(),
@@ -1242,7 +1251,9 @@ describe("2 SATPGateways sending a non fungible token from Besu to Ethereum", ()
12421251
"0",
12431252
ethereumEnv.getTestOwnerSigningCredential(),
12441253
);
1245-
log.info("Non fungible token was transferred correctly from the Bridge account at Ethereum");
1254+
log.info(
1255+
"Non fungible token was transferred correctly from the Bridge account at Ethereum",
1256+
);
12461257

12471258
await ethereumEnv.checkBalance(
12481259
ethereumEnv.getTestNonFungibleContractName(),
@@ -1252,7 +1263,9 @@ describe("2 SATPGateways sending a non fungible token from Besu to Ethereum", ()
12521263
"1",
12531264
ethereumEnv.getTestOwnerSigningCredential(),
12541265
);
1255-
log.info("Non fungible token was transferred correctly to the Owner account at Ethereum");
1266+
log.info(
1267+
"Non fungible token was transferred correctly to the Owner account at Ethereum",
1268+
);
12561269

12571270
// check audit endpoint and get audit data
12581271
const auditResponse = await adminApi.performAudit(0, Date.now());

0 commit comments

Comments
 (0)