@pafi-dev/issuer 0.12.3 → 0.12.4

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.
package/dist/index.cjs CHANGED
@@ -4653,20 +4653,20 @@ var IssuerStateValidator = class _IssuerStateValidator {
4653
4653
  }
4654
4654
  async fetchIssuerState(tokenAddr) {
4655
4655
  const issuerAddr = await this.getIssuerAddressForPointToken(tokenAddr);
4656
- const issuerTuple = await this.provider.readContract({
4656
+ const issuerStruct = await this.provider.readContract({
4657
4657
  address: this.registryAddress,
4658
- abi: import_core20.issuerRegistryGetIssuerFlatAbi,
4658
+ abi: import_core20.issuerRegistryAbi,
4659
4659
  functionName: "getIssuer",
4660
4660
  args: [issuerAddr]
4661
4661
  });
4662
4662
  const issuer = {
4663
- issuerAddress: issuerTuple[0],
4664
- signerAddress: issuerTuple[1],
4665
- name: issuerTuple[2],
4666
- symbol: issuerTuple[3],
4667
- active: issuerTuple[4],
4668
- pointToken: issuerTuple[5],
4669
- mintingOracle: issuerTuple[6]
4663
+ issuerAddress: issuerStruct.issuerAddress,
4664
+ signerAddress: issuerStruct.signerAddress,
4665
+ name: issuerStruct.name,
4666
+ symbol: issuerStruct.symbol,
4667
+ active: issuerStruct.active,
4668
+ pointToken: issuerStruct.pointToken,
4669
+ mintingOracle: issuerStruct.mintingOracle
4670
4670
  };
4671
4671
  const [tokenCap, totalSupply] = await Promise.all([
4672
4672
  (0, import_core20.getTokenCap)(this.provider, issuer.mintingOracle, tokenAddr),