Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
tubackkhoa committed Dec 27, 2024
1 parent e30f79a commit fdade6a
Show file tree
Hide file tree
Showing 252 changed files with 4,093 additions and 33,106 deletions.
4 changes: 2 additions & 2 deletions src/codegen/binary.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.4
* This file and any referenced files were automatically generated by @cosmology/telescope@1.11.3
* DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain
* and run the transpile command or yarn proto command to regenerate this bundle.
* and run the transpile command or npm scripts command that is used to regenerate this bundle.
*/


Expand Down
2 changes: 1 addition & 1 deletion src/codegen/capability/v1/capability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const Capability = {
},
toAmino(message: Capability): CapabilityAmino {
const obj: any = {};
obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined;
obj.index = message.index !== BigInt(0) ? message.index?.toString() : undefined;
return obj;
},
fromAminoMsg(object: CapabilityAminoMsg): Capability {
Expand Down
4 changes: 2 additions & 2 deletions src/codegen/capability/v1/genesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const GenesisOwners = {
},
toAmino(message: GenesisOwners): GenesisOwnersAmino {
const obj: any = {};
obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined;
obj.index = message.index !== BigInt(0) ? message.index?.toString() : undefined;
obj.index_owners = message.indexOwners ? CapabilityOwners.toAmino(message.indexOwners) : CapabilityOwners.toAmino(CapabilityOwners.fromPartial({}));
return obj;
},
Expand Down Expand Up @@ -188,7 +188,7 @@ export const GenesisState = {
},
toAmino(message: GenesisState): GenesisStateAmino {
const obj: any = {};
obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined;
obj.index = message.index !== BigInt(0) ? message.index?.toString() : undefined;
if (message.owners) {
obj.owners = message.owners.map(e => e ? GenesisOwners.toAmino(e) : undefined);
} else {
Expand Down
Loading

0 comments on commit fdade6a

Please sign in to comment.