forked from TrueCloudLab/neoneo-go
Merge pull request #1805 from nspcc-dev/interop/convertcontext-fix
interop: fix ConvertContextToReadOnly interop
This commit is contained in:
commit
58ea4607d0
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