Skip to content

Commit f9206ec

Browse files
committed
fix test
1 parent 765854d commit f9206ec

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/thirdweb/src/assets/create-token.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { describe, expect, it } from "vitest";
22
import { ANVIL_CHAIN } from "../../test/src/chains.js";
33
import { TEST_CLIENT } from "../../test/src/test-clients.js";
44
import { TEST_ACCOUNT_A } from "../../test/src/test-wallets.js";
5+
import { getContract } from "../contract/contract.js";
6+
import { name } from "../extensions/common/read/name.js";
57
import { createTokenByImplConfig } from "./create-token-by-impl-config.js";
68

79
describe.runIf(process.env.TW_SECRET_KEY)("create token by impl config", () => {
@@ -17,5 +19,14 @@ describe.runIf(process.env.TW_SECRET_KEY)("create token by impl config", () => {
1719
});
1820

1921
expect(token).toBeDefined();
22+
23+
const tokenName = await name({
24+
contract: getContract({
25+
client: TEST_CLIENT,
26+
chain: ANVIL_CHAIN,
27+
address: token,
28+
}),
29+
});
30+
expect(tokenName).to.eq("Test");
2031
});
2132
});

0 commit comments

Comments
 (0)