removed Get from account

This commit is contained in:
Sunny Aggarwal 2018-04-29 20:03:22 -07:00 committed by Christopher Goes
parent fdb610bea7
commit 9f4f35a6db
No known key found for this signature in database
GPG Key ID: E828D98232D328D3
3 changed files with 0 additions and 22 deletions

View File

@ -37,9 +37,6 @@ type Account interface {
GetCoins() Coins
SetCoins(Coins) error
Get(key interface{}) (value interface{}, err error)
Set(key interface{}, value interface{}) error
}
// AccountMapper stores and retrieves accounts from stores

View File

@ -30,16 +30,6 @@ func NewBaseAccountWithAddress(addr sdk.Address) BaseAccount {
}
}
// Implements sdk.Account.
func (acc BaseAccount) Get(key interface{}) (value interface{}, err error) {
panic("not implemented yet")
}
// Implements sdk.Account.
func (acc *BaseAccount) Set(key interface{}, value interface{}) error {
panic("not implemented yet")
}
// Implements sdk.Account.
func (acc BaseAccount) GetAddress() sdk.Address {
return acc.Address

View File

@ -106,12 +106,3 @@ func TestBaseAccountMarshal(t *testing.T) {
assert.NotNil(t, err)
}
func TestBaseAccountGetSet(t *testing.T) {
_, _, addr := keyPubAddr()
acc := NewBaseAccountWithAddress(addr)
// Get/Set are not yet defined - all values cause a panic.
assert.Panics(t, func() { acc.Get("key") })
assert.Panics(t, func() { acc.Set("key", "value") })
}