Skip to content

Commit

Permalink
fix: added additional check (#1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikRevich authored Nov 9, 2024
1 parent 5217a55 commit 1140e00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/client/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ func SetWallet(w zcncrypto.Wallet) {

// SetWalletMode sets current wallet split key mode.
func SetWalletMode(mode bool) {
client.wallet.IsSplit = mode
if client.wallet != nil {
client.wallet.IsSplit = mode
}
}

// splitKeyWallet parameter is valid only if SignatureScheme is "BLS0Chain"
Expand Down

0 comments on commit 1140e00

Please sign in to comment.