Compare commits
3 Commits
a17c59ded4
...
c3bca57f50
Author | SHA1 | Date |
---|---|---|
Aida Syoko | c3bca57f50 | |
czkz | c96846fce2 | |
alongdate | d0753027be |
|
@ -17,6 +17,7 @@ The minor version will be incremented upon a breaking change and the patch versi
|
|||
### Fixes
|
||||
|
||||
- lang: Eliminate variable allocations that build up stack space for token extension code generation ([#2913](https://github.com/coral-xyz/anchor/pull/2913)).
|
||||
- ts: Fix incorrect `maxSupportedTransactionVersion` in `AnchorProvider.send*()` methods ([#2922](https://github.com/coral-xyz/anchor/pull/2922)).
|
||||
|
||||
### Breaking
|
||||
|
||||
|
|
|
@ -174,8 +174,10 @@ export class AnchorProvider implements Provider {
|
|||
? tx.signatures?.[0] || new Uint8Array()
|
||||
: tx.signature ?? new Uint8Array()
|
||||
);
|
||||
const maxVer = isVersionedTransaction(tx) ? 0 : undefined;
|
||||
const failedTx = await this.connection.getTransaction(txSig, {
|
||||
commitment: "confirmed",
|
||||
maxSupportedTransactionVersion: maxVer,
|
||||
});
|
||||
if (!failedTx) {
|
||||
throw err;
|
||||
|
@ -256,8 +258,10 @@ export class AnchorProvider implements Provider {
|
|||
? tx.signatures?.[0] || new Uint8Array()
|
||||
: tx.signature ?? new Uint8Array()
|
||||
);
|
||||
const maxVer = isVersionedTransaction(tx) ? 0 : undefined;
|
||||
const failedTx = await this.connection.getTransaction(txSig, {
|
||||
commitment: "confirmed",
|
||||
maxSupportedTransactionVersion: maxVer,
|
||||
});
|
||||
if (!failedTx) {
|
||||
throw err;
|
||||
|
|
|
@ -2947,7 +2947,7 @@
|
|||
{
|
||||
"code": 584,
|
||||
"name": "ProposalIsNotExecutable",
|
||||
"msg": "Proposal is not not executable"
|
||||
"msg": "Proposal is not executable"
|
||||
},
|
||||
{
|
||||
"code": 585,
|
||||
|
|
|
@ -1848,8 +1848,8 @@ pub enum GovernanceError {
|
|||
#[msg("Invalid proposal options")]
|
||||
InvalidProposalOptions,
|
||||
|
||||
/// Proposal is not not executable
|
||||
#[msg("Proposal is not not executable")]
|
||||
/// Proposal is not executable
|
||||
#[msg("Proposal is not executable")]
|
||||
ProposalIsNotExecutable,
|
||||
|
||||
/// Invalid vote
|
||||
|
|
|
@ -2910,7 +2910,7 @@ type SplGovernance = {
|
|||
{
|
||||
code: 584;
|
||||
name: "ProposalIsNotExecutable";
|
||||
msg: "Proposal is not not executable";
|
||||
msg: "Proposal is not executable";
|
||||
},
|
||||
{
|
||||
code: 585;
|
||||
|
@ -5869,7 +5869,7 @@ const IDL: SplGovernance = {
|
|||
{
|
||||
code: 584,
|
||||
name: "ProposalIsNotExecutable",
|
||||
msg: "Proposal is not not executable",
|
||||
msg: "Proposal is not executable",
|
||||
},
|
||||
{
|
||||
code: 585,
|
||||
|
|
Loading…
Reference in New Issue