UnUniFi / utils

10 stars 2 forks source link

bech32prefix is not reflected and address prefix is cosmos instead of ununifi #246

Closed YasunoriMATSUOKA closed 2 years ago

YasunoriMATSUOKA commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

Address prefix should be ununifi. But address prefix is now cosmos.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Address should be started with ununifi prefix.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

http://localhost:4200/portal/ image

http://localhost:4200/portal/keys/{keyId} image

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

I use this config.js file.

const configs = [
  // A node without Monitor
  {
    id: 'a.private-test.ununifi.cauchye.net',
    restURL: `${location.protocol}//a.private-test.ununifi.cauchye.net:1317`,
    websocketURL: `${location.protocol.replace(
      'http',
      'ws',
    )}//a.private-test.ununifi.cauchye.net:26657`,
    chainID: 'ununifi-8-private-test',
    bech32Prefix: {
      accAddr: 'ununifi',
      accPub: 'ununifipub',
      valAddr: 'ununifivaloper',
      valPub: 'ununifivaloperpub',
      consAddr: 'ununifivalcons',
      consPub: 'ununifivalconspub',
    },
    minimumGasPrices: [
      {
        denom: 'uguu',
        amount: 0.015,
      },
    ],
    extension: {
      faucet: [
        {
          hasFaucet: true,
          faucetURL: `${location.protocol}//a.private-test.ununifi.cauchye.net:8000`,
          denom: 'ubtc',
          creditAmount: 100, // amount to credit in max request
          maxCredit: 99, // account has already maxCredit balance cannot claim anymore
        },
        {
          hasFaucet: true,
          faucetURL: `${location.protocol}//a.private-test.ununifi.cauchye.net:8002`,
          denom: 'uguu',
          creditAmount: 2000000,
          maxCredit: 1999999,
        },
        {
          hasFaucet: false,
          faucetURL: `${location.protocol}//a.private-test.ununifi.cauchye.net:8004`,
          denom: 'jpu',
          creditAmount: 10,
          maxCredit: 9,
        },
        {
          hasFaucet: true,
          faucetURL: `${location.protocol}//a.private-test.ununifi.cauchye.net:8006`,
          denom: 'ueth',
          creditAmount: 1000,
          maxCredit: 999,
        },
        {
          hasFaucet: false,
          faucetURL: `${location.protocol}//a.private-test.ununifi.cauchye.net:8008`,
          denom: 'euu',
          creditAmount: 10,
          maxCredit: 9,
        },
      ],
      monitor: {},
      navigations: [],
      messageModules: [
        'bank',
        'auth',
        'crisis',
        'distribution',
        'evidence',
        'genaccounts',
        'gov',
        'ibc',
        'slashing',
        'staking',
        'auction',
        'ununifidist',
        'cdp',
        'incentive',
        'pricefeed',
      ],
    },
  },
  // B node without Monitor
  {
    id: 'b.private-test.ununifi.cauchye.net',
    restURL: `${location.protocol}//b.private-test.ununifi.cauchye.net:1317`,
    websocketURL: `${location.protocol.replace(
      'http',
      'ws',
    )}//b.private-test.ununifi.cauchye.net:26657`,
    chainID: 'ununifi-8-private-test',
    bech32Prefix: {
      accAddr: 'ununifi',
      accPub: 'ununifipub',
      valAddr: 'ununifivaloper',
      valPub: 'ununifivaloperpub',
      consAddr: 'ununifivalcons',
      consPub: 'ununifivalconspub',
    },
    minimumGasPrices: [
      {
        denom: 'uguu',
        amount: 0.015,
      },
    ],
    extension: {
      faucet: [
        {
          hasFaucet: true,
          faucetURL: `${location.protocol}//b.private-test.ununifi.cauchye.net:8000`,
          denom: 'ubtc',
          creditAmount: 100, // amount to credit in max request
          maxCredit: 99, // account has already maxCredit balance cannot claim anymore
        },
        {
          hasFaucet: true,
          faucetURL: `${location.protocol}//b.private-test.ununifi.cauchye.net:8002`,
          denom: 'uguu',
          creditAmount: 2000000,
          maxCredit: 1999999,
        },
        {
          hasFaucet: false,
          faucetURL: `${location.protocol}//b.private-test.ununifi.cauchye.net:8004`,
          denom: 'jpu',
          creditAmount: 10,
          maxCredit: 9,
        },
        {
          hasFaucet: true,
          faucetURL: `${location.protocol}//b.private-test.ununifi.cauchye.net:8006`,
          denom: 'ueth',
          creditAmount: 1000,
          maxCredit: 999,
        },
        {
          hasFaucet: false,
          faucetURL: `${location.protocol}//b.private-test.ununifi.cauchye.net:8008`,
          denom: 'euu',
          creditAmount: 10,
          maxCredit: 9,
        },
      ],
      monitor: {},
      navigations: [],
      messageModules: [
        'bank',
        'auth',
        'crisis',
        'distribution',
        'evidence',
        'genaccounts',
        'gov',
        'ibc',
        'slashing',
        'staking',
        'auction',
        'ununifidist',
        'cdp',
        'incentive',
        'pricefeed',
      ],
    },
  },
];

I think config related implementation cause this issue.

YasunoriMATSUOKA commented 2 years ago

Sorry, wrong repository... Close.