mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-05 23:55:11 +00:00
state: store NEF instead of script for contract
NEFs for native contracts are set statically, thus field values are taken from the reference implementation.
This commit is contained in:
parent
11191c0a08
commit
0b26b46234
17 changed files with 138 additions and 72 deletions
|
@ -338,7 +338,7 @@ func contractIsStandard(ic *interop.Context) error {
|
|||
var result bool
|
||||
cs, _ := ic.GetContract(u)
|
||||
if cs != nil {
|
||||
result = vm.IsStandardContract(cs.Script)
|
||||
result = vm.IsStandardContract(cs.NEF.Script)
|
||||
} else {
|
||||
if tx, ok := ic.Container.(*transaction.Transaction); ok {
|
||||
for _, witness := range tx.Scripts {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue