From facee712eb1eb66c469f65eefe39b74dcb2fbc2b Mon Sep 17 00:00:00 2001 From: chris-j-h Date: Mon, 19 Aug 2019 16:44:17 +0100 Subject: [PATCH] Use value receiver for VaultWallet Store as no state change is performed --- accounts/vault/vault_wallet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/vault/vault_wallet.go b/accounts/vault/vault_wallet.go index 923fde8b0..eadb03c12 100644 --- a/accounts/vault/vault_wallet.go +++ b/accounts/vault/vault_wallet.go @@ -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")