@@ -3,7 +3,7 @@ import * as bs58 from 'bs58';
33
44import { getBuilderFactory } from '../getBuilderFactory' ;
55import { KeyPair , TokenTransferBuilder } from '../../../src' ;
6- import { Eddsa , FeeOptions , TransactionType } from '@bitgo/sdk-core' ;
6+ import { Eddsa , TransactionType } from '@bitgo/sdk-core' ;
77import * as testData from '../../resources/sol' ;
88import BigNumber from 'bignumber.js' ;
99import { Ed25519Bip32HdTree } from '@bitgo/sdk-lib-mpc' ;
@@ -164,10 +164,9 @@ describe('Sol Transaction Builder', async () => {
164164 testData . TOKEN_TRANSFER_SIGNED_TX_WITH_MEMO_AND_DURABLE_NONCE
165165 ) as TokenTransferBuilder ;
166166 const prioFeeMicroLamports = '10000000' ;
167- const priorityFee : FeeOptions = {
168- amount : prioFeeMicroLamports ,
169- } ;
170- txBuilder . setPriorityFee ( priorityFee ) ;
167+ // We don't have to manually set the priority fee here as the raw txn already has the priority fee instruction;
168+ // therefore once initBuilder is called (it's called within fromImplementation), it will set the txBuilder's priorityFee field
169+ // which will then be used in txBuilder.build() by tokenTransferBuilder to add the set compute fee instruction
171170 const builtTx = await txBuilder . build ( ) ;
172171 should . equal ( builtTx . type , TransactionType . Send ) ;
173172 should . equal (
0 commit comments