mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
interop: fix ConvertContextToReadOnly interop
The same bug as in #1804.
This commit is contained in:
parent
0e7bb5cc77
commit
0c464083ed
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue