File tree 3 files changed +5
-6
lines changed
sdk/src/contexts/solana/utils
wormhole-connect/src/utils/wallet
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ async function determinePriorityFee(
76
76
) : Promise < number > {
77
77
// https://twitter.com/0xMert_/status/1768669928825962706
78
78
79
- let fee = 1 ; // Set fee to 100,000 microlamport by default
79
+ let fee = 1 ; // Set fee to 1 microlamport by default
80
80
81
81
try {
82
82
const recentFeesResponse = await connection . getRecentPrioritizationFees ( {
Original file line number Diff line number Diff line change @@ -41,12 +41,11 @@ export async function postVaaWithRetry(
41
41
vaa ,
42
42
commitment ,
43
43
) ;
44
- for ( const unsignedTransaction of unsignedTransactions ) {
45
- await addComputeBudget ( connection , unsignedTransaction , [ ] ) ;
46
- }
47
-
48
44
const postVaaTransaction = unsignedTransactions . pop ( ) ! ;
49
45
46
+ for ( const unsignedTransaction of unsignedTransactions ) {
47
+ await addComputeBudget ( connection , unsignedTransaction ) ;
48
+ }
50
49
const responses = await sendAndConfirmTransactionsWithRetry (
51
50
connection ,
52
51
modifySignTransaction ( signTransaction , ...signers ) ,
@@ -55,6 +54,7 @@ export async function postVaaWithRetry(
55
54
maxRetries ,
56
55
) ;
57
56
//While the signature_set is used to create the final instruction, it doesn't need to sign it.
57
+ await addComputeBudget ( connection , postVaaTransaction ) ;
58
58
responses . push (
59
59
...( await sendAndConfirmTransactionsWithRetry (
60
60
connection ,
Original file line number Diff line number Diff line change @@ -166,7 +166,6 @@ export const postVaa = async (
166
166
pk . toString ( ) ,
167
167
Buffer . from ( signedVAA ) ,
168
168
MAX_VAA_UPLOAD_RETRIES_SOLANA ,
169
- undefined ,
170
169
) ;
171
170
} ;
172
171
You can’t perform that action at this time.
0 commit comments