transaction: remove type field, set Version to 0
Two changes being done here, because they require a lot of updates to tests. Now we're back into version 0 and we only have one type of transaction. It also removes GetType and GetScript interops, both are obsolete in Neo 3.
This commit is contained in:
parent
2ef9ec0756
commit
21efccd300
33 changed files with 216 additions and 449 deletions
|
@ -496,13 +496,7 @@ func (s *Server) getApplicationLog(reqParams request.Params) (interface{}, *resp
|
|||
return nil, response.NewRPCError("Error while getting transaction", "", nil)
|
||||
}
|
||||
|
||||
var scriptHash util.Uint160
|
||||
switch t := tx.Data.(type) {
|
||||
case *transaction.InvocationTX:
|
||||
scriptHash = hash.Hash160(t.Script)
|
||||
default:
|
||||
return nil, response.NewRPCError("Invalid transaction type", "", nil)
|
||||
}
|
||||
scriptHash := hash.Hash160(tx.Script)
|
||||
|
||||
return result.NewApplicationLog(appExecResult, scriptHash), nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue