removed Get from account
This commit is contained in:
parent
fdb610bea7
commit
9f4f35a6db
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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") })
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue