core: refactor native call
1. `System.Contract.CallNative` expects version on stack. 2. Actual method is determined based on current instruction pointer. 3. Native hashes don't longer depend on NEF checksum.
This commit is contained in:
parent
f264996f74
commit
f9f1fe03b2
33 changed files with 128 additions and 102 deletions
|
@ -75,6 +75,7 @@ var (
|
|||
|
||||
func newOracle() *Oracle {
|
||||
o := &Oracle{ContractMD: *interop.NewContractMD(nativenames.Oracle, oracleContractID)}
|
||||
defer o.UpdateHash()
|
||||
|
||||
w := io.NewBufBinWriter()
|
||||
emit.Opcodes(w.BinWriter, opcode.NEWARRAY0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue