Skip to content

Commit 2398152

Browse files
committed
fix typos
1 parent 139370e commit 2398152

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/utils/cspr-network.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class CasperNetwork {
5353
auctionContractHash?: string
5454
): Transaction {
5555
if (this.apiVersion === 2) {
56-
new NativeDelegateBuilder()
56+
return new NativeDelegateBuilder()
5757
.validator(validatorPublicKey)
5858
.from(delegatorPublicKey)
5959
.amount(amountMotes)
@@ -95,7 +95,7 @@ export class CasperNetwork {
9595
auctionContractHash?: string
9696
): Transaction {
9797
if (this.apiVersion === 2) {
98-
new NativeUndelegateBuilder()
98+
return new NativeUndelegateBuilder()
9999
.validator(validatorPublicKey)
100100
.from(delegatorPublicKey)
101101
.amount(amountMotes)
@@ -138,7 +138,7 @@ export class CasperNetwork {
138138
auctionContractHash?: string
139139
): Transaction {
140140
if (this.apiVersion === 2) {
141-
new NativeRedelegateBuilder()
141+
return new NativeRedelegateBuilder()
142142
.validator(validatorPublicKey)
143143
.newValidator(newValidatorPublicKey)
144144
.from(delegatorPublicKey)
@@ -178,15 +178,15 @@ export class CasperNetwork {
178178

179179
public createTransferTransaction(
180180
senderPublicKey: PublicKey,
181-
recepientPublicKey: PublicKey,
181+
recipientPublicKey: PublicKey,
182182
networkName: string,
183183
amountMotes: string,
184184
deployCost: number,
185185
ttl: number
186186
): Transaction {
187187
const transferBuilder = new NativeTransferBuilder()
188188
.from(senderPublicKey)
189-
.target(recepientPublicKey)
189+
.target(recipientPublicKey)
190190
.amount(amountMotes)
191191
.chainName(networkName)
192192
.payment(deployCost)

0 commit comments

Comments
 (0)