mirror of https://github.com/poanetwork/quorum.git
Use value receiver for VaultWallet Store as no state change is performed
This commit is contained in:
parent
dc1cfa3e4a
commit
facee712eb
|
@ -237,7 +237,7 @@ func (w VaultWallet) Lock(account accounts.Account) error {
|
|||
|
||||
// Store writes the provided private key to the vault. The hex string values of the key and address are stored in the locations specified by config.
|
||||
// TODO make vendor agnostic
|
||||
func (w *VaultWallet) Store(key *ecdsa.PrivateKey, config HashicorpSecretConfig) (common.Address, []string, error) {
|
||||
func (w VaultWallet) Store(key *ecdsa.PrivateKey, config HashicorpSecretConfig) (common.Address, []string, error) {
|
||||
address := crypto.PubkeyToAddress(key.PublicKey)
|
||||
addrHex := strings.TrimPrefix(address.Hex(), "0x")
|
||||
|
||||
|
|
Loading…
Reference in New Issue