https://github.com/terra-money/error-parser
https://github.com/terra-money/error-parser
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/terra-money/error-parser
- Owner: terra-money
- Created: 2022-01-10T07:28:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-29T15:21:41.000Z (about 2 years ago)
- Last Synced: 2024-04-14T22:52:28.612Z (over 1 year ago)
- Language: TypeScript
- Size: 524 KB
- Stars: 0
- Watchers: 5
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @terra-money/error-parser
Parse error messages from Terra blockchain## Installation
```
npm i @terra-money/error-parser
```## Example codes
```typescriptimport parse from "@terra-money/error-parser"
const errorMessage = "failed to execute message; message index: 0: Already claimed: execute wasm contract failed"
console.log(parse(errorMessage))
// Already claimed```