-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make Transaction and Message immutable #156
base: main
Are you sure you want to change the base?
make Transaction and Message immutable #156
Conversation
547d290
to
cc54dbb
Compare
Dependency ReviewThe following issues were found:
License Issuessettings.gradle.kts
OpenSSF Scorecard
Scanned Files
|
also tries to cleanup a bit the serialisation logic
cc54dbb
to
cc04ae7
Compare
public var recentBlockHash: String? = null, | ||
accountKeys: AccountKeysList = AccountKeysList(), | ||
instructions: List<TransactionInstruction> = emptyList(), | ||
public class Message internal constructor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a equals and hashcode here ?
) { | ||
|
||
val bytes: Int | ||
get() = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the formatting ok here ? 🤔
} | ||
} | ||
|
||
override fun toString(): String = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a hashcode here to I think
@@ -3,8 +3,10 @@ package net.avianlabs.solana.vendor | |||
import okio.Buffer | |||
import kotlin.experimental.and | |||
|
|||
internal typealias ShortVecLength = ByteArray | |||
|
|||
internal object ShortvecEncoding { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shortvec
or ShortVec
?
also tries to cleanup a bit the serialisation logic