compiler: implement Ledger contract wrapper

This commit is contained in:
Evgeniy Stratonikov 2021-02-08 11:10:25 +03:00
parent 7bee28b81e
commit 69c011b3e7
6 changed files with 102 additions and 29 deletions

View file

@ -16,7 +16,7 @@ func TestCodeGen_DebugInfo(t *testing.T) {
src := `package foo
import "github.com/nspcc-dev/neo-go/pkg/interop"
import "github.com/nspcc-dev/neo-go/pkg/interop/storage"
import "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
import "github.com/nspcc-dev/neo-go/pkg/interop/native/ledger"
func Main(op string) bool {
var s string
_ = s
@ -47,7 +47,7 @@ func unexportedMethod() int { return 1 }
func MethodParams(addr interop.Hash160, h interop.Hash256,
sig interop.Signature, pub interop.PublicKey,
inter interop.Interface,
ctx storage.Context, tx runtime.Transaction) bool {
ctx storage.Context, tx ledger.Transaction) bool {
return true
}
type MyStruct struct {}