@bosonprotocol/core-sdk 1.37.0-alpha.2 → 1.37.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,12 +37,12 @@ function symbol(args) {
37
37
  exports.symbol = symbol;
38
38
  function tokenUri(args) {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
- const data = interface_1.erc721Iface.encodeFunctionData("tokenUri", [args.tokenId]);
40
+ const data = interface_1.erc721Iface.encodeFunctionData("tokenURI", [args.tokenId]);
41
41
  const result = yield args.web3Lib.call({
42
42
  to: args.contractAddress,
43
43
  data: data
44
44
  });
45
- const [tokenUri] = interface_1.erc721Iface.decodeFunctionResult("tokenUri", result);
45
+ const [tokenUri] = interface_1.erc721Iface.decodeFunctionResult("tokenURI", result);
46
46
  return String(tokenUri);
47
47
  });
48
48
  }
@@ -18,12 +18,12 @@ export async function symbol(args) {
18
18
  return String(symbol);
19
19
  }
20
20
  export async function tokenUri(args) {
21
- const data = erc721Iface.encodeFunctionData("tokenUri", [args.tokenId]);
21
+ const data = erc721Iface.encodeFunctionData("tokenURI", [args.tokenId]);
22
22
  const result = await args.web3Lib.call({
23
23
  to: args.contractAddress,
24
24
  data: data
25
25
  });
26
- const [tokenUri] = erc721Iface.decodeFunctionResult("tokenUri", result);
26
+ const [tokenUri] = erc721Iface.decodeFunctionResult("tokenURI", result);
27
27
  return String(tokenUri);
28
28
  }
29
29
  export async function balanceOf(args) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bosonprotocol/core-sdk",
3
- "version": "1.37.0-alpha.2",
3
+ "version": "1.37.0-alpha.3",
4
4
  "description": "Facilitates interaction with the contracts and subgraphs of the Boson Protocol",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -35,7 +35,7 @@
35
35
  "access": "public"
36
36
  },
37
37
  "dependencies": {
38
- "@bosonprotocol/common": "^1.25.3-alpha.3",
38
+ "@bosonprotocol/common": "^1.25.3-alpha.4",
39
39
  "@ethersproject/abi": "^5.5.0",
40
40
  "@ethersproject/address": "^5.5.0",
41
41
  "@ethersproject/bignumber": "^5.5.0",
@@ -61,5 +61,5 @@
61
61
  "overrides": {
62
62
  "typescript": "^5.1.6"
63
63
  },
64
- "gitHead": "5e7ab9d70437b9be5f5fd31db558d1b9cdec32b6"
64
+ "gitHead": "4c1e4da40f8a93a7f479401fa3a2dd7dcf865a58"
65
65
  }
@@ -35,14 +35,14 @@ export async function tokenUri(args: {
35
35
  tokenId: BigNumberish;
36
36
  web3Lib: Web3LibAdapter;
37
37
  }): Promise<string> {
38
- const data = erc721Iface.encodeFunctionData("tokenUri", [args.tokenId]);
38
+ const data = erc721Iface.encodeFunctionData("tokenURI", [args.tokenId]);
39
39
 
40
40
  const result = await args.web3Lib.call({
41
41
  to: args.contractAddress,
42
42
  data: data
43
43
  });
44
44
 
45
- const [tokenUri] = erc721Iface.decodeFunctionResult("tokenUri", result);
45
+ const [tokenUri] = erc721Iface.decodeFunctionResult("tokenURI", result);
46
46
  return String(tokenUri);
47
47
  }
48
48
  export async function balanceOf(args: {