Return from Call() upon error

This commit is contained in:
Jae Kwon
2015-03-18 01:06:33 -07:00
parent a2938fd35b
commit 532fa3e5ca
2 changed files with 21 additions and 35 deletions

View File

@ -24,10 +24,10 @@ type Log struct {
type AppState interface {
// Accounts
GetAccount(Word) (*Account, error)
GetAccount(addr Word) (*Account, error)
UpdateAccount(*Account) error
DeleteAccount(*Account) error
CreateAccount(Word, uint64) (*Account, error)
CreateAccount(addr Word, balance uint64) (*Account, error)
// Storage
GetStorage(Word, Word) (Word, error)