diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 11ca6d6d03..78e26d5dcb 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -228,7 +228,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 245, + spec_version: 246, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1, diff --git a/runtime/src/precompiles/staking.rs b/runtime/src/precompiles/staking.rs index 51e8382598..41cdbaa7db 100644 --- a/runtime/src/precompiles/staking.rs +++ b/runtime/src/precompiles/staking.rs @@ -91,6 +91,7 @@ impl StakingPrecompile { } #[precompile::public("getTotalColdkeyStake(bytes32)")] + #[precompile::view] fn get_total_coldkey_stake( _handle: &mut impl PrecompileHandle, coldkey_h256: H256, @@ -110,6 +111,7 @@ impl StakingPrecompile { } #[precompile::public("getTotalHotkeyStake(bytes32)")] + #[precompile::view] fn get_total_hotkey_stake( _handle: &mut impl PrecompileHandle, hotkey_h256: H256,