From 0c464083edba60cb9561c3784ba58b8e1306fa6f Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Thu, 4 Mar 2021 11:51:32 +0300 Subject: [PATCH] interop: fix ConvertContextToReadOnly interop The same bug as in #1804. --- pkg/interop/storage/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/interop/storage/storage.go b/pkg/interop/storage/storage.go index 87a9f899b..5526aa96f 100644 --- a/pkg/interop/storage/storage.go +++ b/pkg/interop/storage/storage.go @@ -43,7 +43,7 @@ const ( // using this new Context. If Context is already read-only this function is a // no-op. It uses `System.Storage.AsReadOnly` syscall. func ConvertContextToReadOnly(ctx Context) Context { - return neogointernal.Syscall0("System.Storage.AsReadOnly").(Context) + return neogointernal.Syscall1("System.Storage.AsReadOnly", ctx).(Context) } // GetContext returns current contract's (that invokes this function) storage