Skip to content

Commit

Permalink
lang: fix missing skip serialize for idl instruction (#1782)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-schaaf committed Apr 12, 2022
1 parent d07853e commit 1adb6a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -10,6 +10,10 @@ The minor version will be incremented upon a breaking change and the patch versi

## [Unreleased]

### Fixes

* lang: Fix `returns` being serialized as `null` instead of `undefined` in IDL ([#1782](https://github.com/project-serum/anchor/pull/1782)).

## [0.24.1] - 2022-04-12

### Fixes
Expand Down
1 change: 1 addition & 0 deletions lang/syn/src/idl/mod.rs
Expand Up @@ -45,6 +45,7 @@ pub struct IdlInstruction {
pub name: String,
pub accounts: Vec<IdlAccountItem>,
pub args: Vec<IdlField>,
#[serde(skip_serializing_if = "Option::is_none")]
pub returns: Option<IdlType>,
}

Expand Down

0 comments on commit 1adb6a2

Please sign in to comment.