Skip to content

Commit

Permalink
remove keyPair field from JettonWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
neodiX committed Jun 19, 2024
1 parent 9ecbcd4 commit 4342b47
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.ton.java.smartcontract.token.ft;

import com.iwebpp.crypto.TweetNaclFast;
import lombok.Builder;
import lombok.Getter;
import org.ton.java.address.Address;
Expand All @@ -19,13 +18,10 @@

import java.math.BigInteger;

import static java.util.Objects.isNull;

@Builder
@Getter
public class JettonWallet implements Contract {

TweetNaclFast.Signature.KeyPair keyPair;
Address address;

public static class JettonWalletBuilder {
Expand All @@ -38,9 +34,7 @@ public static JettonWalletBuilder builder() {
private static class CustomJettonWalletBuilder extends JettonWalletBuilder {
@Override
public JettonWallet build() {
if (isNull(super.keyPair)) {
super.keyPair = Utils.generateSignatureKeyPair();
}

return super.build();
}
}
Expand Down

0 comments on commit 4342b47

Please sign in to comment.