Skip to content

Commit

Permalink
fix: Fix incorrect parameter order in tokenURI function
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsdls committed Feb 23, 2024
1 parent 893df87 commit 17b6f64
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/thirdweb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"default": "./dist/cjs/exports/thirdweb.js"
},
"./adapters": {
"types": "./dist/types/exports/adapters.d.ts",
"import": "./dist/esm/exports/adapters.js",
"default": "./dist/cjs/exports/adapters.js"
"types": "./dist/types/exports/adapters/*.d.ts",
"import": "./dist/esm/exports/adapters/*.js",
"default": "./dist/cjs/exports/adapters/*.js"
},
"./chains": {
"types": "./dist/types/exports/chains.d.ts",
Expand Down Expand Up @@ -95,7 +95,7 @@
"typesVersions": {
"*": {
"adapters": [
"./dist/types/exports/adapters.d.ts"
"./dist/types/exports/adapters/*.d.ts"
],
"chains": [
"./dist/types/exports/chains.d.ts"
Expand Down
3 changes: 0 additions & 3 deletions packages/thirdweb/src/exports/adapters.ts

This file was deleted.

1 change: 1 addition & 0 deletions packages/thirdweb/src/exports/adapters/ethers5.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { ethers5Adapter } from "../../adapters/ethers5.js";

Check warning on line 1 in packages/thirdweb/src/exports/adapters/ethers5.ts

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/exports/adapters/ethers5.ts#L1

Added line #L1 was not covered by tests
1 change: 1 addition & 0 deletions packages/thirdweb/src/exports/adapters/ethers6.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { ethers6Adapter } from "../../adapters/ethers6.js";

Check warning on line 1 in packages/thirdweb/src/exports/adapters/ethers6.ts

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/exports/adapters/ethers6.ts#L1

Added line #L1 was not covered by tests
1 change: 1 addition & 0 deletions packages/thirdweb/src/exports/adapters/viem.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { viemAdapter } from "../../adapters/viem.js";

Check warning on line 1 in packages/thirdweb/src/exports/adapters/viem.ts

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/exports/adapters/viem.ts#L1

Added line #L1 was not covered by tests
2 changes: 1 addition & 1 deletion packages/thirdweb/src/extensions/erc1155/read/tokenURI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function tokenURI(
return readContract({
...options,
method:
"function tokenURI(uint256 tokenId) external view returns (string memory)",
"function tokenURI(tokenId uint256) external view returns (string memory)",
params: [options.tokenId],
});
}

Check warning on line 26 in packages/thirdweb/src/extensions/erc1155/read/tokenURI.ts

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/extensions/erc1155/read/tokenURI.ts#L1-L26

Added lines #L1 - L26 were not covered by tests

0 comments on commit 17b6f64

Please sign in to comment.