Skip to content

Commit

Permalink
Bump tx version; Cleanup comments; Move shared dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
AdaJane committed Mar 13, 2023
1 parent 5acd626 commit b8193cb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 26 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ assert_matches = { version = "1.5.0" }
hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
hex-literal = { version = "0.3.4" }
jsonrpc-core = { version = "18.0.0" }
jsonrpsee = { version = "0.16.2" }
log = { version = "0.4.17" }
parity-scale-codec = { version = "3.2.1", default-features = false, features = ["derive"] }
serde = { version = "1.0.152", default-features = false, features = ["derive"] }
Expand Down
4 changes: 2 additions & 2 deletions creditcoin-js/src/interfaces/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ import type {
PalletTransactionPaymentChargeTransactionPayment,
PalletTransactionPaymentEvent,
PalletTransactionPaymentReleases,
SpArithmeticArithmeticError,
SpRuntimeArithmeticError,
SpCoreEcdsaPublic,
SpCoreEcdsaSignature,
SpCoreEd25519Public,
Expand Down Expand Up @@ -205,7 +205,7 @@ declare module '@polkadot/types/types/registry' {
PalletTransactionPaymentChargeTransactionPayment: PalletTransactionPaymentChargeTransactionPayment;
PalletTransactionPaymentEvent: PalletTransactionPaymentEvent;
PalletTransactionPaymentReleases: PalletTransactionPaymentReleases;
SpArithmeticArithmeticError: SpArithmeticArithmeticError;
SpRuntimeArithmeticError: SpRuntimeArithmeticError;
SpCoreEcdsaPublic: SpCoreEcdsaPublic;
SpCoreEcdsaSignature: SpCoreEcdsaSignature;
SpCoreEd25519Public: SpCoreEd25519Public;
Expand Down
2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ substrate-prometheus-endpoint = { workspace = true }
task-scheduler-runtime-api = { workspace = true }
thiserror = "1.0.38"
try-runtime-cli = { workspace = true, optional = true }
jsonrpsee = { version = "0.16.2", features = ["server"] }
jsonrpsee = { workspace = true, features = ["server"] }
serde_json = "1.0.93"
frame-system = { workspace = true }
pallet-transaction-payment = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion node/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repository.workspace = true
[dependencies]
creditcoin-node-runtime = { workspace = true }
frame-system = { features = ["std"], workspace = true }
jsonrpsee = { version = "0.16.2", features = ["server", "macros"] }
jsonrpsee = { workspace = true, features = ["server", "macros"] }
primitives = { workspace = true, features = ["prometheus"] }
sc-rpc = { workspace = true }
serde = { workspace = true }
Expand Down
21 changes: 0 additions & 21 deletions pallets/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,27 +261,6 @@ where
false
}

/** Based on substrate example
```ignore
macro_rules! bounded_vec {
($ ($values:expr),* $(,)?) => {
{
sp_std::vec![$($values),*].try_into().unwrap()
}
};
( $value:expr ; $repetition:expr ) => {
{
sp_std::vec![$value ; $repetition].try_into().unwrap()
}
}
}
DataProvider::electable_targets(None)
.defensive_proof("Trivial 0 AccountId") // Wrap in defensive
.map_err(|_| "failed to elect")
.map(|t| bounded_vec![(t[0].clone(), Default::default())])
```
*/
/// Based on previous implementation
fn elect() -> Result<BoundedSupportsOf<Self>, Self::Error> {
// Get electable targets
DataProvider::electable_targets(None)
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_version: 214,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 10,
transaction_version: 11,
state_version: 1,
};

0 comments on commit b8193cb

Please sign in to comment.