@@ -53,7 +53,7 @@ export class CasperNetwork {
53
53
auctionContractHash ?: string
54
54
) : Transaction {
55
55
if ( this . apiVersion === 2 ) {
56
- new NativeDelegateBuilder ( )
56
+ return new NativeDelegateBuilder ( )
57
57
. validator ( validatorPublicKey )
58
58
. from ( delegatorPublicKey )
59
59
. amount ( amountMotes )
@@ -95,7 +95,7 @@ export class CasperNetwork {
95
95
auctionContractHash ?: string
96
96
) : Transaction {
97
97
if ( this . apiVersion === 2 ) {
98
- new NativeUndelegateBuilder ( )
98
+ return new NativeUndelegateBuilder ( )
99
99
. validator ( validatorPublicKey )
100
100
. from ( delegatorPublicKey )
101
101
. amount ( amountMotes )
@@ -138,7 +138,7 @@ export class CasperNetwork {
138
138
auctionContractHash ?: string
139
139
) : Transaction {
140
140
if ( this . apiVersion === 2 ) {
141
- new NativeRedelegateBuilder ( )
141
+ return new NativeRedelegateBuilder ( )
142
142
. validator ( validatorPublicKey )
143
143
. newValidator ( newValidatorPublicKey )
144
144
. from ( delegatorPublicKey )
@@ -178,15 +178,15 @@ export class CasperNetwork {
178
178
179
179
public createTransferTransaction (
180
180
senderPublicKey : PublicKey ,
181
- recepientPublicKey : PublicKey ,
181
+ recipientPublicKey : PublicKey ,
182
182
networkName : string ,
183
183
amountMotes : string ,
184
184
deployCost : number ,
185
185
ttl : number
186
186
) : Transaction {
187
187
const transferBuilder = new NativeTransferBuilder ( )
188
188
. from ( senderPublicKey )
189
- . target ( recepientPublicKey )
189
+ . target ( recipientPublicKey )
190
190
. amount ( amountMotes )
191
191
. chainName ( networkName )
192
192
. payment ( deployCost )
0 commit comments