Skip to content

Commit

Permalink
chore: remove create sui config dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Aug 1, 2024
1 parent 723f33d commit 9899173
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
14 changes: 1 addition & 13 deletions common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,7 @@ const {
const { normalizeBech32 } = require('@cosmjs/encoding');

function loadConfig(env) {
const config = require(`${__dirname}/../axelar-chains-config/info/${env}.json`);

if (!config.sui) {
config.sui = {
networkType: env === 'local' ? 'localnet' : env,
name: 'Sui',
contracts: {
AxelarGateway: {},
},
};
}

return config;
return require(`${__dirname}/../axelar-chains-config/info/${env}.json`);
}

function saveConfig(config, env) {
Expand Down
4 changes: 3 additions & 1 deletion sui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ If you want to run against a local Sui network, then create a `axelar-chains-con
"tokenSymbol": "SUI",
"rpc": "http://127.0.0.1:9000",
"faucetUrl": "http://127.0.0.1:9123",
"contracts": {}
"contracts": {
"AxelarGateway": {}
}
}
}
```
Expand Down

0 comments on commit 9899173

Please sign in to comment.