Skip to content

Commit e95659a

Browse files
authored
ASI upgrade: fixing hardcoded address prefix in token faucet (#204)
1 parent 85cdad9 commit e95659a

File tree

2 files changed

+80
-74
lines changed

2 files changed

+80
-74
lines changed

imports/ui/home/token-tap/tokenTap.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default class TokenTap extends Component {
5656

5757
validCosmosAddress = (address) => {
5858

59-
return useBech32Config(defaultBech32Config("fetch"), () => {
59+
return useBech32Config(defaultBech32Config(Meteor.settings.public.bech32PrefixAccAddr), () => {
6060
try {
6161
AccAddress.fromBech32(address);
6262
} catch (e) {

settings-files/eridanus.json

+79-73
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,82 @@
11
{
2-
"public": {
3-
"chainName": "eridanus-1",
4-
"chainId": "eridanus-1",
5-
"gtm": "",
6-
"genesisTime": "2022-08-05T11:34:40Z",
7-
"slashingWindow": 250,
8-
"uptimeWindow": 250,
9-
"initialPageSize": 30,
10-
"secp256k1": false,
11-
"bech32PrefixAccAddr": "fetch",
12-
"bech32PrefixAccPub": "fetchpub",
13-
"bech32PrefixValAddr": "fetchvaloper",
14-
"bech32PrefixValPub": "fetchvaloperpub",
15-
"bech32PrefixConsAddr": "fetchvalcons",
16-
"bech32PrefixConsPub": "fetchvalconspub",
17-
"tokenTap": true,
18-
"tokenTapURL": "https://faucet-eridanus.t-v3-london.fetch-ai.com/api/v3/claims",
19-
"bondDenom": "atestfet",
20-
"powerReduction": 1000000000000000000,
21-
"coins": [
22-
{
23-
"denom": "atestfet",
24-
"displayName": "TESTFET",
25-
"fraction": 1000000000000000000
26-
},
27-
{
28-
"denom": "nanomobx",
29-
"displayName": "MOBX",
30-
"fraction": 1000000000
31-
},
32-
{
33-
"denom": "ulrn",
34-
"displayName": "LRN",
35-
"fraction": 1000000
36-
}
37-
],
38-
"ledger": {
39-
"coinType": 118,
40-
"appName": "Cosmos",
41-
"appVersion": "2.16.0",
42-
"gasPrice": 5000000000
43-
},
44-
"modules": {
45-
"bank": true,
46-
"supply": true,
47-
"minting": true,
48-
"gov": true,
49-
"distribution": true
50-
},
51-
"coingeckoId": "",
52-
"networks": "",
53-
"banners": false
2+
"public": {
3+
"chainName": "eridanus-1",
4+
"chainId": "eridanus-1",
5+
"gtm": "",
6+
"genesisTime": "2022-04-27T16:30:00Z",
7+
"slashingWindow": 250,
8+
"uptimeWindow": 250,
9+
"initialPageSize": 30,
10+
"secp256k1": false,
11+
"bech32PrefixAccAddr": "asi",
12+
"bech32PrefixAccPub": "asipub",
13+
"bech32PrefixValAddr": "asivaloper",
14+
"bech32PrefixValPub": "asivaloperpub",
15+
"bech32PrefixConsAddr": "asivalcons",
16+
"bech32PrefixConsPub": "asivalconspub",
17+
"tokenTap": true,
18+
"tokenTapURL": "https://faucet-eridanus-1.fetch.ai/api/v3/claims",
19+
"bondDenom": "atestasi",
20+
"powerReduction": 1000000000000000000,
21+
"coins": [
22+
{
23+
"denom": "atestasi",
24+
"displayName": "TESTASI",
25+
"fraction": 1000000000000000000
26+
},
27+
{
28+
"denom": "nanomobx",
29+
"displayName": "MOBX",
30+
"fraction": 1000000000
31+
},
32+
{
33+
"denom": "ulrn",
34+
"displayName": "LRN",
35+
"fraction": 1000000
36+
},
37+
{
38+
"denom": "nanonomx",
39+
"displayName": "NOMX",
40+
"fraction": 1000000000
41+
}
42+
],
43+
"ledger": {
44+
"coinType": 118,
45+
"appName": "Cosmos",
46+
"appVersion": "2.16.0",
47+
"gasPrice": 5000000000
5448
},
55-
"remote": {
56-
"rpc": "https://rpc-eridanus.t-v3-london.fetch-ai.com",
57-
"api": "https://rest-eridanus.t-v3-london.fetch-ai.com"
49+
"modules": {
50+
"bank": true,
51+
"supply": true,
52+
"minting": true,
53+
"gov": true,
54+
"distribution": true
5855
},
59-
"debug": {
60-
"startTimer": true
61-
},
62-
"params": {
63-
"startHeight": 1,
64-
"defaultBlockTime": 5000,
65-
"validatorUpdateWindow": 300,
66-
"blockInterval": 15000,
67-
"transactionsInterval": 5000,
68-
"keybaseFetchingInterval": 18000000,
69-
"consensusInterval": 1000,
70-
"statusInterval": 7500,
71-
"signingInfoInterval": 1800000,
72-
"proposalInterval": 5000,
73-
"missedBlocksInterval": 60000,
74-
"delegationInterval": 900000
75-
}
76-
}
56+
"coingeckoId": "",
57+
"networks": "",
58+
"banners": false
59+
},
60+
"remote": {
61+
"rpc": "https://rpc-eridanus-1.t-v3-london.fetch-ai.com",
62+
"api": "https://rest-eridanus-1.t-v3-london.fetch-ai.com"
63+
},
64+
"debug": {
65+
"startTimer": true
66+
},
67+
"params": {
68+
"startHeight": 1,
69+
"defaultBlockTime": 5000,
70+
"validatorUpdateWindow": 300,
71+
"blockInterval": 15000,
72+
"transactionsInterval": 5000,
73+
"keybaseFetchingInterval": 18000000,
74+
"consensusInterval": 1000,
75+
"statusInterval": 7500,
76+
"signingInfoInterval": 1800000,
77+
"proposalInterval": 5000,
78+
"missedBlocksInterval": 60000,
79+
"delegationInterval": 900000
80+
}
81+
}
82+

0 commit comments

Comments
 (0)