With the new version of library TranasctionBuilder.new() arguments have changed.
When running:
const txBuilder = this.S.TransactionBuilder.new(
this.S.LinearFee.new(
this.S.BigNum.from_str(protocolParameters.linearFee.minFeeA),
this.S.BigNum.from_str(protocolParameters.linearFee.minFeeB)
),
this.S.BigNum.from_str(protocolParameters.minUtxo),
this.S.BigNum.from_str(protocolParameters.poolDeposit),
this.S.BigNum.from_str(protocolParameters.keyDeposit),
this.S.BigNum.from_str(protocolParameters.coinsPerUtxoWord),
protocolParameters.maxValSize,
protocolParameters.maxTxSize,
protocolParameters.priceMem,
protocolParameters.priceStep,
this.S.LanguageViews.new(Buffer.from(languageViews, "hex"))
);
It throws an error
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'new')
What do I do wrong here?