Skip to content

Commit

Permalink
fix: postrelease bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
vivalaakam committed Jun 26, 2023
1 parent 78def24 commit 0ded937
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/event-actions/on-staking-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function sync(addressList: string[], cosmos: Cosmos) {
).then(results => {
const hashes = new Set(results.flat());
for (const e of rows) {
if (!hashes.has(e.hash)) {
if (e && e.isValid() && !hashes.has(e.hash)) {
StakingMetadata.remove(e.hash);
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/services/cosmos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@ export class Cosmos {
try {
const resp = await this.postSimulate(data, account);

if (!resp.gas_info) {
return {...Cosmos.fee};
}

return {
...Cosmos.fee,
gas: String(
Expand Down

0 comments on commit 0ded937

Please sign in to comment.