Skip to content

Commit

Permalink
Merge pull request #65 from sirano11/kasWallet_accountKey
Browse files Browse the repository at this point in the history
Modified logic to check whether the account type is AccountKeyWeightedMultiSig
  • Loading branch information
kale authored Feb 16, 2021
2 parents 76ef1cd + 2f720f1 commit a5c4614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/xyz/groundx/caver_ext_kas/wallet/KASWallet.java
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public void setWalletAPI(Wallet walletAPI) {

private boolean isWeightedMultiSigType(AbstractTransaction transaction, String address) throws IOException {
AccountKey res = transaction.getKlaytnCall().getAccountKey(address).send();
if(res == null) {
if(res == null || res.getResult() == null) {
return false;
}

Expand Down Expand Up @@ -318,7 +318,7 @@ private boolean isWeightedMultiSigType(AbstractTransaction transaction, String a

private boolean isWeightedMultiSigType(AbstractFeeDelegatedTransaction fdTransaction, String address) throws IOException {
AccountKey res = fdTransaction.getKlaytnCall().getAccountKey(address).send();
if(res == null) {
if(res == null || res.getResult() == null) {
return true;
}
AccountKey.AccountKeyData accountKeyData = res.getResult();
Expand Down

0 comments on commit a5c4614

Please sign in to comment.