Updated the VM & VM tests
* Stack Error shouldn't revert to previous state * Updated VM Test tool * Added Transfer method to VM Env
This commit is contained in:
@@ -22,7 +22,7 @@ type Account struct {
|
||||
|
||||
func StateObjectFromAccount(addr string, account Account) *ethstate.StateObject {
|
||||
obj := ethstate.NewStateObject(ethutil.Hex2Bytes(addr))
|
||||
obj.Balance = ethutil.Big(account.Balance)
|
||||
obj.SetBalance(ethutil.Big(account.Balance))
|
||||
|
||||
if ethutil.IsHex(account.Code) {
|
||||
account.Code = account.Code[2:]
|
||||
|
Reference in New Issue
Block a user