Skip to content

Commit

Permalink
remove overriding the network prefix on dart and JS-side
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Apr 3, 2023
1 parent 3b20672 commit d1b6975
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions app/js_service_encointer/src/service/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,19 +155,6 @@ async function createApi(wsProvider, configOverride) {
Object.assign(pallets, configOverride.pallets);
}
window.send('log', `overwritten pallet config: ${JSON.stringify(pallets)}`);

const chainProperties = api.registry.getChainProperties();
window.send('log', `chain properties: ${chainProperties}`);

// Hardcode SS58-prefix to 42, see https://github.com/encointer/encointer-wallet-flutter/issues/567
const properties = {
ss58Format: 42,
tokenDecimals: chainProperties.tokenDecimals,
tokenSymbol: chainProperties.tokenSymbol
};

window.send('log', `ss58 overwritten chain properties: ${JSON.stringify(properties)}`);
api.registry.setChainProperties(properties);
return api;
}

Expand Down
2 changes: 1 addition & 1 deletion app/lib/config/consts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ EndpointData networkEndpointEncointerLietaer = EndpointData.fromJson({

EndpointData networkEndpointEncointerMainnet = EndpointData.fromJson({
'info': 'nctr-k',
'ss58': 42, // Fixme: #567
'ss58': 2,
'text': 'Encointer Network on Kusama (Hosted by Encointer Association)',
'value': 'wss://kusama.api.encointer.org',
'overrideConfig': gesellConfig.toJson(),
Expand Down

0 comments on commit d1b6975

Please sign in to comment.