-
Notifications
You must be signed in to change notification settings - Fork 304
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
Add Ix Cards for Ed25519 Precompile #437
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
cursor += 14; // Size of one Ed25519SignatureOffsets struct | ||
} | ||
|
||
return { count, offsets }; |
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.
returned count is not needed/used. You can remove it unless there's another usage you're expecting
} | ||
|
||
// See https://docs.anza.xyz/runtime/programs/#ed25519-program | ||
function decodeEd25519Instruction(data: Buffer): { count: number; offsets: Ed25519SignatureOffsets[] } { |
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.
can you add a couple unit tests for this?
@@ -166,6 +168,7 @@ function InstructionCard({ | |||
const key = `${index}-${childIndex}`; | |||
const { program: anchorProgram } = useAnchorProgram(ix.programId.toString(), url); | |||
|
|||
console.log('ix', ix); |
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.
please remove the console.log
This reverts commit eaa9355.
Example: https://explorer.solana.com/tx/56JcSVYUPr8hdg8q2bfDhiPm5W9XQtr45VEevK9ye6Ec7DcyvD9CvnDgUoQhL3eQEmz32RRtLcaRdU9xyaDyCLiT?cluster=devnet
Before:
After: