Skip to content

Commit df33d41

Browse files
authored
fix: funding script for sealevel (#8553)
1 parent 3d3ae57 commit df33d41

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.changeset/five-doors-fold.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hyperlane-xyz/sdk": patch
3+
---
4+
5+
Fixed sealevel fee payer

typescript/sdk/src/signers/svm/solana-web3js.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ export class SvmMultiProtocolSignerAdapter implements IMultiProtocolSigner<Proto
167167

168168
transaction.recentBlockhash = blockhash;
169169

170+
if (!transaction.feePayer) {
171+
transaction.feePayer = this.signer.publicKey;
172+
}
173+
170174
// Sign with extra signers first (e.g., randomWallet for Sealevel transferRemote).
171175
// Uses partialSign to avoid clearing any existing signatures.
172176
// This re-signs with the fresh blockhash, overwriting the adapter's pre-sign.

0 commit comments

Comments
 (0)