Skip to content

Commit

Permalink
Merge pull request #29 from skip-mev/staging
Browse files Browse the repository at this point in the history
deploy lots of things to prod
  • Loading branch information
thal0x authored Aug 3, 2023
2 parents f7201a3 + 4cca3e2 commit 96c3662
Show file tree
Hide file tree
Showing 5 changed files with 397 additions and 15 deletions.
164 changes: 164 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"test": "jest"
},
"dependencies": {
"@cosmjs/amino": "^0.31.0",
"@cosmjs/cosmwasm-stargate": "^0.31.0",
"@cosmjs/encoding": "^0.31.0",
"@cosmjs/ledger-amino": "^0.31.0",
"@cosmjs/math": "^0.30.1",
"@cosmjs/proto-signing": "^0.30.1",
"@cosmjs/stargate": "^0.30.1",
Expand Down
17 changes: 17 additions & 0 deletions src/components/TransactionDialog/TransactionDialogContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,23 @@ const TransactionDialogContent: FC<Props> = ({
});
}
);
} catch (err: any) {
console.error(err);

setTxError(err.message);
setIsError(true);

setTxStatuses((statuses) => {
const newStatuses = [...statuses];

return newStatuses.map((status) => {
if (status === "PENDING") {
return "INIT";
}

return status;
});
});
} finally {
setTransacting(false);
setTxComplete(true);
Expand Down
Loading

1 comment on commit 96c3662

@vercel
Copy link

@vercel vercel bot commented on 96c3662 Aug 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.