Skip to content

Commit

Permalink
Merge pull request #1684 from 0chain/fix/zbox-wallet-set
Browse files Browse the repository at this point in the history
Fix: replace public key with client key
  • Loading branch information
dabasov authored Dec 4, 2024
2 parents bc8a669 + 553fbb8 commit faf8c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wasmsdk/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func setWallet(clientID, clientKey, peerPublicKey, publicKey, privateKey, mnemon
fmt.Println("set Wallet, is split:", isSplit)
client.SetWallet(*w)

zboxApiClient.SetWallet(clientID, privateKey, publicKey)
zboxApiClient.SetWallet(clientID, privateKey, clientKey)
if mode == "" { // main thread, need to notify the web worker to update wallet
// notify the web worker to update wallet
if err := jsbridge.PostMessageToAllWorkers(jsbridge.MsgTypeUpdateWallet, map[string]string{
Expand Down

0 comments on commit faf8c81

Please sign in to comment.