Replies: 2 comments 3 replies
-
This caused by // Sort. Prioritizing first by signer, then by writable
uniqueMetas.sort(function (x, y) {
if (x.isSigner !== y.isSigner) {
// Signers always come before non-signers
return x.isSigner ? -1 : 1;
}
if (x.isWritable !== y.isWritable) {
// Writable accounts always come before read-only accounts
return x.isWritable ? -1 : 1;
}
// Otherwise, sort by pubkey, stringwise.
return x.pubkey.toBase58().localeCompare(y.pubkey.toBase58());
}); |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think this should be easily fixed. The problem was web3.js had issues with partial signing and order of keys changing. We were kinda compatible, but there were edge cases. Looking at git blame, that was changed this past week to have deterministic order of keys! Will create an issue and work on this during the weekend! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Web3.js(1.44.0) byte array after serializeMessage() is not equal to compileMessage() in solnet(5.0.6).
Account order is different. Debugging further.
Same operation success in web3.js, tx sent successfully.
Beta Was this translation helpful? Give feedback.
All reactions