Merge pull request #1180 from nspcc-dev/fix-calling-scripthash-check-in-nep5

Add calling scripthash check to native nep5 transfers
This commit is contained in:
Roman Khimov 2020-07-16 07:29:14 +03:00 committed by GitHub
commit acfded7f45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 49 deletions

View file

@ -32,6 +32,7 @@ func SpawnVM(ic *interop.Context) *vm.VM {
if ic.Chain != nil {
vm.RegisterInteropGetter(ic.Chain.(*Blockchain).contracts.GetNativeInterop(ic))
}
ic.ScriptGetter = vm
return vm
}