Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Sep 14, 2023
1 parent 04958a8 commit 4bd67cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/emulator_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,13 @@ func (e *EmulatorBackend) CreateAccount() (*stdlib.Account, error) {
}, nil
}

func (e *EmulatorBackend) GetAccount(address interpreter.AddressValue) *stdlib.Account {
func (e *EmulatorBackend) GetAccount(address interpreter.AddressValue) (*stdlib.Account, error) {
addr := address.Hex()
account, ok := e.accounts[addr]
if !ok {
panic(fmt.Errorf("account not found"))
return nil, fmt.Errorf("account not found")
}
return account
return account, nil
}

func (e *EmulatorBackend) AddTransaction(
Expand Down

0 comments on commit 4bd67cc

Please sign in to comment.