main.org.sol4k.BaseInstruction.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sol4k Show documentation
Show all versions of sol4k Show documentation
Kotlin, JVM, and Android client for Solana
package org.sol4k
data class BaseInstruction(
override val data: ByteArray,
override val keys: List,
override val programId: PublicKey,
) : Instruction {
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as BaseInstruction
if (!data.contentEquals(other.data)) return false
if (keys != other.keys) return false
if (programId != other.programId) return false
return true
}
override fun hashCode(): Int {
var result = data.contentHashCode()
result = 31 * result + keys.hashCode()
result = 31 * result + programId.hashCode()
return result
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy