Skip to content

Commit

Permalink
Renamed variables due to updated PricingMode
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmyshchyshyn committed Nov 27, 2024
1 parent 6e7946d commit d1a3f8c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/types/Deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,10 @@ export class Deploy {
const standardPayment = paymentAmount === 0 && !deploy.payment.moduleBytes;

const pricingMode = new PricingMode();
const classicMode = new PaymentLimitedMode();
classicMode.gasPriceTolerance = 1;
classicMode.paymentAmount = paymentAmount;
classicMode.standardPayment = standardPayment;
const paymentLimitedMode = new PaymentLimitedMode();
paymentLimitedMode.gasPriceTolerance = 1;
paymentLimitedMode.paymentAmount = paymentAmount;
paymentLimitedMode.standardPayment = standardPayment;

return new Transaction(
deploy.hash,
Expand Down
10 changes: 5 additions & 5 deletions src/types/PricingMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { CLValueBool, CLValueUInt64, CLValueUInt8 } from './clvalue';
import { CalltableSerialization } from './CalltableSerialization';

/**
* Represents the classic pricing mode, including parameters for gas price tolerance,
* Represents the payment limited ( classic before ) pricing mode, including parameters for gas price tolerance,
* payment amount, and standard payment.
*/
@jsonObject
Expand Down Expand Up @@ -90,7 +90,7 @@ export class FixedMode {
}

/**
* Represents the reserved pricing mode, which includes a receipt hash.
* Represents the prepair ( reserved before ) pricing mode, which includes a receipt hash.
*/
@jsonObject
export class PrepaidMode {
Expand All @@ -115,12 +115,12 @@ export class PrepaidMode {
}

/**
* Represents the pricing mode, which can be one of the following: Classic, Fixed, or Reserved.
* Represents the pricing mode, which can be one of the following: PaymentLimited, Fixed, or Prepaid.
*/
@jsonObject
export class PricingMode {
/**
* The classic pricing mode, if applicable.
* The PaymentLimited pricing mode, if applicable.
*/
@jsonMember({ name: 'PaymentLimited', constructor: PaymentLimitedMode })
paymentLimited?: PaymentLimitedMode;
Expand All @@ -132,7 +132,7 @@ export class PricingMode {
fixed?: FixedMode;

/**
* The reserved pricing mode, if applicable.
* The Prepaid pricing mode, if applicable.
*/
@jsonMember({ name: 'Prepaid', constructor: PrepaidMode })
prepaid?: PrepaidMode;
Expand Down

0 comments on commit d1a3f8c

Please sign in to comment.