Skip to content

Commit

Permalink
use chainID from wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj committed Mar 25, 2024
1 parent 1355f0b commit ea0ab5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/common/viewingkey/viewing_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type RPCSignedViewingKey struct {

// GenerateViewingKeyForWallet takes an account wallet, generates a viewing key and signs the key with the acc's private key
func GenerateViewingKeyForWallet(wal wallet.Wallet) (*ViewingKey, error) {
chainID := int64(443)
chainID := wal.ChainID().Int64()
messageType := PersonalSign

// simulate what the gateway would do to generate the viewing key
Expand Down

0 comments on commit ea0ab5a

Please sign in to comment.