mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-22 04:27:58 +00:00
fix: Fix ktlint errors in debug logging statements
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ object CustomTransactionExtensions {
|
||||
"bb4a61ab0c4b8c12f5eab71d0c86c482e03a275ecdafee678dea712474d33d75", // Pezkuwi Mainnet
|
||||
"00d0e1d0581c3cd5c5768652d52f4520184018b44f56a2ae1e0dc9d65c00c948", // Asset Hub
|
||||
"58269e9c184f721e0309332d90cafc410df1519a5dc27a5fd9b3bf5fd2d129f8", // People Chain
|
||||
"96eb58af1bb7288115b5e4ff1590422533e749293f231974536dc6672417d06f" // Zagros Testnet
|
||||
"96eb58af1bb7288115b5e4ff1590422533e749293f231974536dc6672417d06f" // Zagros Testnet
|
||||
)
|
||||
|
||||
fun applyDefaultValues(builder: ExtrinsicBuilder) {
|
||||
|
||||
+1
-1
@@ -14,5 +14,5 @@ import io.novasama.substrate_sdk_android.runtime.extrinsic.v5.transactionExtensi
|
||||
class AuthorizeCall : FixedValueTransactionExtension(
|
||||
name = "AuthorizeCall",
|
||||
implicit = null,
|
||||
explicit = null // PhantomData encodes to nothing
|
||||
explicit = null // PhantomData encodes to nothing
|
||||
)
|
||||
|
||||
+1
-1
@@ -14,5 +14,5 @@ import io.novasama.substrate_sdk_android.runtime.extrinsic.v5.transactionExtensi
|
||||
class CheckNonZeroSender : FixedValueTransactionExtension(
|
||||
name = "CheckNonZeroSender",
|
||||
implicit = null,
|
||||
explicit = null // PhantomData encodes to nothing
|
||||
explicit = null // PhantomData encodes to nothing
|
||||
)
|
||||
|
||||
+1
-1
@@ -12,5 +12,5 @@ import io.novasama.substrate_sdk_android.runtime.extrinsic.v5.transactionExtensi
|
||||
class CheckWeight : FixedValueTransactionExtension(
|
||||
name = "CheckWeight",
|
||||
implicit = null,
|
||||
explicit = null // PhantomData encodes to nothing
|
||||
explicit = null // PhantomData encodes to nothing
|
||||
)
|
||||
|
||||
+3
-3
@@ -23,8 +23,8 @@ class PezkuwiCheckMortality(
|
||||
blockHash: ByteArray
|
||||
) : FixedValueTransactionExtension(
|
||||
name = "CheckMortality",
|
||||
implicit = blockHash, // blockHash goes into signer payload
|
||||
explicit = createEraEntry(era) // Era as DictEnum.Entry
|
||||
implicit = blockHash, // blockHash goes into signer payload
|
||||
explicit = createEraEntry(era) // Era as DictEnum.Entry
|
||||
) {
|
||||
companion object {
|
||||
/**
|
||||
@@ -41,7 +41,7 @@ class PezkuwiCheckMortality(
|
||||
|
||||
// Calculate the two-byte encoding
|
||||
val encoded = ((countTrailingZeroBits(period) - 1).coerceIn(1, 15)) or
|
||||
((phase / quantizeFactor).toInt() shl 4)
|
||||
((phase / quantizeFactor).toInt() shl 4)
|
||||
|
||||
val firstByte = encoded and 0xFF
|
||||
val secondByte = (encoded shr 8) and 0xFF
|
||||
|
||||
+1
-1
@@ -14,5 +14,5 @@ import io.novasama.substrate_sdk_android.runtime.extrinsic.v5.transactionExtensi
|
||||
class WeightReclaim : FixedValueTransactionExtension(
|
||||
name = "WeightReclaim",
|
||||
implicit = null,
|
||||
explicit = null // PhantomData encodes to nothing
|
||||
explicit = null // PhantomData encodes to nothing
|
||||
)
|
||||
|
||||
+5
-2
@@ -116,7 +116,10 @@ class RuntimeFactory(
|
||||
// DEBUG: Check for ExtrinsicSignature
|
||||
val hasExtrinsicSignature = typeRegistry["ExtrinsicSignature"] != null
|
||||
val hasMultiSignature = typeRegistry["MultiSignature"] != null
|
||||
Log.d("RuntimeFactory", "DEBUG: Chain $chainId - ExtrinsicSignature=$hasExtrinsicSignature, MultiSignature=$hasMultiSignature, typesUsage=$typesUsage, typeCount=${types.size}")
|
||||
Log.d(
|
||||
"RuntimeFactory",
|
||||
"Chain $chainId - ExtrinsicSig=$hasExtrinsicSignature, MultiSig=$hasMultiSignature, types=$typesUsage"
|
||||
)
|
||||
|
||||
// Store diagnostic info for error messages
|
||||
lastDiagnostics = "typesUsage=$typesUsage, ExtrinsicSig=$hasExtrinsicSignature, MultiSig=$hasMultiSignature, typeCount=${types.size}"
|
||||
@@ -176,7 +179,7 @@ class RuntimeFactory(
|
||||
throw BaseTypesNotInCacheException
|
||||
}
|
||||
|
||||
Log.d("RuntimeFactory", "DEBUG: BaseTypes loaded, length=${baseTypesRaw.length}, contains ExtrinsicSignature=${baseTypesRaw.contains("ExtrinsicSignature")}")
|
||||
Log.d("RuntimeFactory", "BaseTypes loaded, len=${baseTypesRaw.length}")
|
||||
|
||||
val typePreset = parseBaseDefinitions(fromJson(baseTypesRaw), initialPreset)
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ fun RuntimeSnapshot.isEthereumAddress(): Boolean {
|
||||
?: typeRegistry["MultiAddress"]
|
||||
?: typeRegistry["sp_runtime::multiaddress::MultiAddress"]
|
||||
?: typeRegistry["pezsp_runtime::multiaddress::MultiAddress"]
|
||||
?: return false // If no address type found, assume not Ethereum
|
||||
?: return false // If no address type found, assume not Ethereum
|
||||
|
||||
val resolvedType = addressType.skipAliases() ?: return false
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
VERSION_CODE=31
|
||||
VERSION_CODE=32
|
||||
Reference in New Issue
Block a user