Skip to content

Commit

Permalink
fix codebase issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pyramation committed Jan 22, 2025
1 parent 414f74b commit df9c010
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
13 changes: 0 additions & 13 deletions v1/packages/chain-registry/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,19 +465,6 @@ chainPaths.forEach((file) => {

if (data.$schema.endsWith('chain.schema.json')) {
if (!data.slip44) data.slip44 = 118;
if (data.codebase) {
const newCodebase = {};
if ('cosmos_sdk_version' in data.codebase) {
newCodebase.cosmos_sdk_version = data.codebase.cosmos_sdk_version;
}
if ('cosmwasm_enabled' in data.codebase) {
newCodebase.cosmwasm_enabled = data.codebase.cosmwasm_enabled;
}
if ('cosmwasm_version' in data.codebase) {
newCodebase.cosmwasm_version = data.codebase.cosmwasm_version;
}
data.codebase = newCodebase;
}
delete data.peers;

if (!data.chain_name) {
Expand Down
13 changes: 0 additions & 13 deletions v2/packages/chain-registry/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,19 +447,6 @@ chainPaths.forEach((file) => {

if (data.$schema.endsWith('chain.schema.json')) {
if (!data.slip44) data.slip44 = 118;
// if (data.codebase) {
// const newCodebase = {};
// if ('cosmos_sdk_version' in data.codebase) {
// newCodebase.cosmos_sdk_version = data.codebase.cosmos_sdk_version;
// }
// if ('cosmwasm_enabled' in data.codebase) {
// newCodebase.cosmwasm_enabled = data.codebase.cosmwasm_enabled;
// }
// if ('cosmwasm_version' in data.codebase) {
// newCodebase.cosmwasm_version = data.codebase.cosmwasm_version;
// }
// data.codebase = newCodebase;
// }
delete data.peers;

if (!data.chain_name) {
Expand Down

0 comments on commit df9c010

Please sign in to comment.