Skip to content

Commit

Permalink
Fix author_extrinsicUpdate notifications being PascalCased (#611)
Browse files Browse the repository at this point in the history
* Fix `author_extrinsicUpdate` notifications being PascalCased

* PR link
  • Loading branch information
tomaka authored May 25, 2023
1 parent 9b8c00e commit 54acbdb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/src/json_rpc/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1062,15 +1062,25 @@ pub enum SystemPeerRole {

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub enum TransactionStatus {
#[serde(rename = "future")]
Future,
#[serde(rename = "ready")]
Ready,
#[serde(rename = "broadcast")]
Broadcast(Vec<String>), // Base58 PeerIds // TODO: stronger typing
#[serde(rename = "inBlock")]
InBlock(HashHexString),
#[serde(rename = "retracted")]
Retracted(HashHexString),
#[serde(rename = "finalityTimeout")]
FinalityTimeout(HashHexString),
#[serde(rename = "finalized")]
Finalized(HashHexString),
#[serde(rename = "usurped")]
Usurped(HashHexString),
#[serde(rename = "dropped")]
Dropped,
#[serde(rename = "invalid")]
Invalid,
}

Expand Down
1 change: 1 addition & 0 deletions wasm-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- When a runtime contains a `runtime_apis` custom section but no `runtime_version` custom section, or vice-versa, smoldot now falls back to calling `Core_version`. ([#607](https://github.com/smol-dot/smoldot/pull/607))
- Fix panic when the checkpoint in the chain specification is invalid, which can normally only happen if the checkpoint was modified manually. ([#603](https://github.com/smol-dot/smoldot/pull/603))
- Fix panic when the checkpoint in the chain specification contains zero or one Babe epochs, which can happen if the checkpoint was generated before any block was authored. ([#603](https://github.com/smol-dot/smoldot/pull/603))
- The notifications generated by the `author_extrinsicUpdate` JSON-RPC function are now properly camelCased (`future`, `ready`, `broadcast`, `inBlock`, `retracted`, `finalityTimeout`, `finalized`, `usurped`, `dropped`, and `invalid`). They were previously PascalCased (`Future`, `Ready`, `Broadcast`, `InBlock`, `Retracted`, `FinalityTimeout`, `Finalized`, `Usurped`, `Dropped`, and `Invalid`). ([#611](https://github.com/smol-dot/smoldot/pull/611))

## 1.0.6 - 2023-05-09

Expand Down

0 comments on commit 54acbdb

Please sign in to comment.