Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenebelov committed Jan 21, 2025
1 parent 139370e commit 2398152
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/utils/cspr-network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class CasperNetwork {
auctionContractHash?: string
): Transaction {
if (this.apiVersion === 2) {
new NativeDelegateBuilder()
return new NativeDelegateBuilder()
.validator(validatorPublicKey)
.from(delegatorPublicKey)
.amount(amountMotes)
Expand Down Expand Up @@ -95,7 +95,7 @@ export class CasperNetwork {
auctionContractHash?: string
): Transaction {
if (this.apiVersion === 2) {
new NativeUndelegateBuilder()
return new NativeUndelegateBuilder()
.validator(validatorPublicKey)
.from(delegatorPublicKey)
.amount(amountMotes)
Expand Down Expand Up @@ -138,7 +138,7 @@ export class CasperNetwork {
auctionContractHash?: string
): Transaction {
if (this.apiVersion === 2) {
new NativeRedelegateBuilder()
return new NativeRedelegateBuilder()
.validator(validatorPublicKey)
.newValidator(newValidatorPublicKey)
.from(delegatorPublicKey)
Expand Down Expand Up @@ -178,15 +178,15 @@ export class CasperNetwork {

public createTransferTransaction(
senderPublicKey: PublicKey,
recepientPublicKey: PublicKey,
recipientPublicKey: PublicKey,
networkName: string,
amountMotes: string,
deployCost: number,
ttl: number
): Transaction {
const transferBuilder = new NativeTransferBuilder()
.from(senderPublicKey)
.target(recepientPublicKey)
.target(recipientPublicKey)
.amount(amountMotes)
.chainName(networkName)
.payment(deployCost)
Expand Down

0 comments on commit 2398152

Please sign in to comment.