-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make transaction message compilation consistent with @solana/web3.js (#…
…228) * Updated AccountMeta sorting and adding signatures Three primary changes: 1. Updated AccountMeta sorting to match solana/web3.js package. The sorting was a bit different, which resulted in different account key indexes and serialized messages (identical transaction had different serialized output vs js package). The js package has a third sort key that references the AccountMeta PublicKey. 2. Updated the way signatures are added. Previously it added signer signatures if none were present - now it iterates through signers to see if any are missing. 3. Simplified the way AccountMetas are culled * Update transaction.py * Update transaction.py * Update transaction.py * Add unit test for AccountMeta sorting * Linting * Update test_transaction.py * Update test_vote_program.py * Update test_system_program.py * Update test_transaction.py * Update transaction.py * Update src/solana/transaction.py * Update tests/unit/test_system_program.py * Update tests/unit/test_vote_program.py * Update tests/unit/test_system_program.py * Update src/solana/transaction.py * type: exiting to existing * Update transaction.py * Update transaction.py * Update test_vote_program.py * Update test_system_program.py * Update transaction.py * Update test_vote_program.py * Update test_system_program.py * Update transaction.py * Update tests/unit/test_transaction.py * Update src/solana/transaction.py * Update tests/unit/test_vote_program.py
- Loading branch information
Showing
4 changed files
with
414 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.