@alephium/web3 0.10.0-rc.2 → 0.10.0-rc.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.
@@ -39,8 +39,8 @@ class NodeProvider {
39
39
  };
40
40
  // Only use this when the token is following the standard token interface
41
41
  this.fetchStdTokenMetaData = async (tokenId) => {
42
- const group = 0;
43
42
  const address = (0, utils_2.addressFromTokenId)(tokenId);
43
+ const group = (0, utils_2.groupOfAddress)(address);
44
44
  const calls = Array.from([0, 1, 2, 3], (index) => ({ methodIndex: index, group: group, address: address }));
45
45
  const result = await this.contracts.postContractsMulticallContract({
46
46
  calls: calls
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alephium/web3",
3
- "version": "0.10.0-rc.2",
3
+ "version": "0.10.0-rc.3",
4
4
  "description": "A JS/TS library to interact with the Alephium platform",
5
5
  "license": "GPL",
6
6
  "main": "dist/src/index.js",
@@ -102,8 +102,8 @@ export class NodeProvider implements NodeProviderApis {
102
102
 
103
103
  // Only use this when the token is following the standard token interface
104
104
  fetchStdTokenMetaData = async (tokenId: HexString): Promise<TokenMetaData> => {
105
- const group = 0
106
105
  const address = addressFromTokenId(tokenId)
106
+ const group = groupOfAddress(address)
107
107
  const calls = Array.from([0, 1, 2, 3], (index) => ({ methodIndex: index, group: group, address: address }))
108
108
  const result = await this.contracts.postContractsMulticallContract({
109
109
  calls: calls