Skip to content

Commit

Permalink
Merge pull request #708 from alleslabs/fix/nullable-cw2
Browse files Browse the repository at this point in the history
fix: nullable cw2
  • Loading branch information
songwongtp committed Jan 2, 2024
2 parents 4a688da + 329502b commit f53be64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Bug fixes

- [#708](https://github.com/alleslabs/celatone-frontend/pull/708) nullable cw2 info
- [#707](https://github.com/alleslabs/celatone-frontend/pull/707) contract info api fetching error and module proposal on viewmore

## v1.4.0
Expand Down
8 changes: 4 additions & 4 deletions src/lib/services/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ const zContractRest = z.object({
contract_info: z.object({
code_id: z.string(),
creator: zAddr,
admin: zAddr.optional(),
admin: zAddr,
label: z.string(),
created: z
.object({
block_height: z.string(),
tx_index: z.string(),
})
.optional(),
.nullable(),
ibc_port_id: z.string(),
extension: z.string().nullable(),
}),
Expand Down Expand Up @@ -129,8 +129,8 @@ export const zContract = z
code_hash: z.string().transform(parseTxHash),
created_height: z.number(),
created_timestamp: zUtcDate,
cw2_contract: z.string(),
cw2_version: z.string(),
cw2_contract: z.string().nullable(),
cw2_version: z.string().nullable(),
init_msg: z.string(),
init_proposal_id: z.number().nullish(),
init_proposal_title: z.string().nullish(),
Expand Down

2 comments on commit f53be64

@vercel
Copy link

@vercel vercel bot commented on f53be64 Jan 2, 2024

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on f53be64 Jan 2, 2024

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.