Skip to content

Commit 3f20aa9

Browse files
committed
solana: Make comment/function syntax consistent
1 parent fbda72a commit 3f20aa9

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

solana/tests/anchor.test.ts

+11-12
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const connection = new anchor.web3.Connection(
8585
"confirmed"
8686
);
8787

88-
// Make sure we're using the exact same Connection obj for rpc
88+
// make sure we're using the exact same Connection obj for rpc
8989
const ctx: ChainContext<"Devnet", "Solana"> = w
9090
.getPlatform("Solana")
9191
.getChain("Solana", connection);
@@ -128,7 +128,6 @@ describe("example-native-token-transfers", () => {
128128
let ntt: SolanaNtt<"Devnet", "Solana">;
129129
let signer: Signer;
130130
let sender: AccountAddress<"Solana">;
131-
let multisig: anchor.web3.PublicKey;
132131
let tokenAddress: string;
133132
let multisigTokenAuthority: anchor.web3.PublicKey;
134133

@@ -201,7 +200,7 @@ describe("example-native-token-transfers", () => {
201200
);
202201

203202
tokenAddress = mint.publicKey.toBase58();
204-
// Create our contract client
203+
// create our contract client
205204
ntt = new SolanaNtt(
206205
"Devnet",
207206
"Solana",
@@ -264,14 +263,14 @@ describe("example-native-token-transfers", () => {
264263
});
265264
await signSendWait(ctx, registerTxs, signer);
266265

267-
// Set Wormhole xcvr peer
266+
// set Wormhole xcvr peer
268267
const setXcvrPeerTxs = ntt.setWormholeTransceiverPeer(
269268
remoteXcvr,
270269
sender
271270
);
272271
await signSendWait(ctx, setXcvrPeerTxs, signer);
273272

274-
// Set manager peer
273+
// set manager peer
275274
const setPeerTxs = ntt.setPeer(remoteMgr, 18, 1000000n, sender);
276275
await signSendWait(ctx, setPeerTxs, signer);
277276
} catch (e) {
@@ -308,7 +307,7 @@ describe("example-native-token-transfers", () => {
308307
]);
309308
});
310309

311-
test("Can send tokens", async () => {
310+
it("Can send tokens", async () => {
312311
const amount = 100000n;
313312
const sender = Wormhole.parseAddress("Solana", signer.address());
314313

@@ -769,8 +768,8 @@ describe("example-native-token-transfers", () => {
769768
},
770769
};
771770

772-
describe("ABI Versions Test", function () {
773-
test("It initializes from Rpc", async function () {
771+
describe("ABI Versions Test", () => {
772+
test("It initializes from Rpc", async () => {
774773
const ntt = await SolanaNtt.fromRpc(connection, {
775774
Solana: {
776775
...ctx.config,
@@ -783,15 +782,15 @@ describe("example-native-token-transfers", () => {
783782
expect(ntt).toBeTruthy();
784783
});
785784

786-
test("It initializes from constructor", async function () {
785+
test("It initializes from constructor", async () => {
787786
const ntt = new SolanaNtt("Devnet", "Solana", connection, {
788787
...ctx.config.contracts,
789788
...{ ntt: overrides["Solana"] },
790789
});
791790
expect(ntt).toBeTruthy();
792791
});
793792

794-
test("It gets the correct version", async function () {
793+
test("It gets the correct version", async () => {
795794
const version = await SolanaNtt.getVersion(
796795
connection,
797796
{ ntt: overrides["Solana"] },
@@ -800,7 +799,7 @@ describe("example-native-token-transfers", () => {
800799
expect(version).toBe("3.0.0");
801800
});
802801

803-
test("It initializes using `emitterAccount` as transceiver address", async function () {
802+
test("It initializes using `emitterAccount` as transceiver address", async () => {
804803
const overrideEmitter: (typeof overrides)["Solana"] = JSON.parse(
805804
JSON.stringify(overrides["Solana"])
806805
);
@@ -815,7 +814,7 @@ describe("example-native-token-transfers", () => {
815814
expect(ntt).toBeTruthy();
816815
});
817816

818-
test("It gets the correct transceiver type", async function () {
817+
test("It gets the correct transceiver type", async () => {
819818
const ntt = new SolanaNtt("Devnet", "Solana", connection, {
820819
...ctx.config.contracts,
821820
...{ ntt: overrides["Solana"] },

0 commit comments

Comments
 (0)