Use value receiver for VaultWallet Store as no state change is performed

This commit is contained in:
chris-j-h 2019-08-19 16:44:17 +01:00
parent dc1cfa3e4a
commit facee712eb
1 changed files with 1 additions and 1 deletions

View File

@ -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")