diff --git a/substrate-sdk-android/src/main/java/io/novasama/substrate_sdk_android/runtime/metadata/RuntimeMetadata.kt b/substrate-sdk-android/src/main/java/io/novasama/substrate_sdk_android/runtime/metadata/RuntimeMetadata.kt index af65336e..c1283a8d 100644 --- a/substrate-sdk-android/src/main/java/io/novasama/substrate_sdk_android/runtime/metadata/RuntimeMetadata.kt +++ b/substrate-sdk-android/src/main/java/io/novasama/substrate_sdk_android/runtime/metadata/RuntimeMetadata.kt @@ -12,7 +12,7 @@ interface WithName { fun List.groupByName() = associateBy(WithName::name).toMap() class RuntimeMetadata( - val runtimeVersion: BigInteger, + val metadataVersion: Int, val modules: Map, val extrinsic: ExtrinsicMetadata ) diff --git a/substrate-sdk-android/src/main/java/io/novasama/substrate_sdk_android/runtime/metadata/builder/PostV14RuntimeBuilder.kt b/substrate-sdk-android/src/main/java/io/novasama/substrate_sdk_android/runtime/metadata/builder/PostV14RuntimeBuilder.kt index d27c2a89..9aa33e86 100644 --- a/substrate-sdk-android/src/main/java/io/novasama/substrate_sdk_android/runtime/metadata/builder/PostV14RuntimeBuilder.kt +++ b/substrate-sdk-android/src/main/java/io/novasama/substrate_sdk_android/runtime/metadata/builder/PostV14RuntimeBuilder.kt @@ -53,7 +53,7 @@ object PostV14RuntimeBuilder : RuntimeBuilder { typeRegistry ), modules = buildModules(metadataStruct[schema.pallets], typeRegistry), - runtimeVersion = reader.metadataVersion.toBigInteger() + metadataVersion = reader.metadataVersion ) } diff --git a/substrate-sdk-android/src/main/java/io/novasama/substrate_sdk_android/runtime/metadata/builder/V13RuntimeBuilder.kt b/substrate-sdk-android/src/main/java/io/novasama/substrate_sdk_android/runtime/metadata/builder/V13RuntimeBuilder.kt index 663067eb..bc826ae9 100644 --- a/substrate-sdk-android/src/main/java/io/novasama/substrate_sdk_android/runtime/metadata/builder/V13RuntimeBuilder.kt +++ b/substrate-sdk-android/src/main/java/io/novasama/substrate_sdk_android/runtime/metadata/builder/V13RuntimeBuilder.kt @@ -48,7 +48,7 @@ internal object V13RuntimeBuilder : RuntimeBuilder { knownSignedExtensions = knownSignedExtensions ), modules = buildModules(metadataStruct[RuntimeMetadataSchema.modules], typeRegistry), - runtimeVersion = reader.metadataVersion.toBigInteger() + metadataVersion = reader.metadataVersion ) }