File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
governance/xc_admin/packages/xc_admin_common/src Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import {
33
33
deriveWormholeBridgeDataKey ,
34
34
} from "@certusone/wormhole-sdk/lib/cjs/solana/wormhole" ;
35
35
import { KeyValueConfig , Storable } from "./base" ;
36
+ import { PriorityFeeConfig } from "@pythnetwork/solana-utils" ;
36
37
37
38
class InvalidTransactionError extends Error {
38
39
constructor ( message : string ) {
@@ -343,7 +344,8 @@ export class Vault extends Storable {
343
344
*/
344
345
public async proposeWormholeMessage (
345
346
payloads : Buffer [ ] ,
346
- proposalAddress ?: PublicKey
347
+ proposalAddress ?: PublicKey ,
348
+ priorityFeeConfig : PriorityFeeConfig = { }
347
349
) : Promise < WormholeMultisigProposal > {
348
350
const squad = this . getSquadOrThrow ( ) ;
349
351
const multisigVault = new MultisigVault (
@@ -356,7 +358,8 @@ export class Vault extends Storable {
356
358
await multisigVault . proposeWormholeMultipleMessagesWithPayer (
357
359
payloads ,
358
360
squad . wallet . publicKey ,
359
- proposalAddress
361
+ proposalAddress ,
362
+ priorityFeeConfig
360
363
) ;
361
364
return new WormholeMultisigProposal ( txAccount , squad , this . cluster ) ;
362
365
}
Original file line number Diff line number Diff line change @@ -219,7 +219,8 @@ export class MultisigVault {
219
219
public async proposeWormholeMultipleMessagesWithPayer (
220
220
payloads : Buffer [ ] ,
221
221
messagePayer : PublicKey ,
222
- proposalAddress ?: PublicKey
222
+ proposalAddress ?: PublicKey ,
223
+ priorityFeeConfig : PriorityFeeConfig = { }
223
224
) : Promise < PublicKey > {
224
225
const msAccount = await this . getMultisigAccount ( ) ;
225
226
@@ -267,7 +268,7 @@ export class MultisigVault {
267
268
268
269
const txToSend = TransactionBuilder . batchIntoLegacyTransactions (
269
270
ixToSend ,
270
- { }
271
+ priorityFeeConfig
271
272
) ;
272
273
await this . sendAllTransactions ( txToSend ) ;
273
274
return proposalAddress ;
You can’t perform that action at this time.
0 commit comments