diff --git a/sdk/src/main/kotlin/org/onflow/flow/sdk/models.kt b/sdk/src/main/kotlin/org/onflow/flow/sdk/models.kt index 2fbdc75..88766e4 100644 --- a/sdk/src/main/kotlin/org/onflow/flow/sdk/models.kt +++ b/sdk/src/main/kotlin/org/onflow/flow/sdk/models.kt @@ -460,8 +460,7 @@ data class FlowTransaction( get() { return signerList .withIndex() - .map { it.value to it.index } - .toMap() + .associate { it.value to it.index } } companion object { @@ -612,7 +611,7 @@ data class FlowTransactionSignature( fun of(value: TransactionOuterClass.Transaction.Signature): FlowTransactionSignature = FlowTransactionSignature( address = FlowAddress.of(value.address.toByteArray()), - signerIndex = value.keyId, + signerIndex = value.keyId , keyIndex = value.keyId, signature = FlowSignature(value.signature.toByteArray()) ) @@ -1468,6 +1467,14 @@ data class FlowNodeVersionInfo( .setProtocolVersion(protocolVersion) .setSporkRootBlockHeight(sporkRootBlockHeight) .setNodeRootBlockHeight(nodeRootBlockHeight) + .setCompatibleRange( + compatibleRange?.let { + NodeVersionInfoOuterClass.CompatibleRange.newBuilder() + .setStartHeight(it.startHeight) + .setEndHeight(it.endHeight) + .build() + } + ) override fun equals(other: Any?): Boolean { if (this === other) return true