Skip to content

Commit

Permalink
Merge pull request #1805 from nspcc-dev/interop/convertcontext-fix
Browse files Browse the repository at this point in the history
interop: fix ConvertContextToReadOnly interop
  • Loading branch information
roman-khimov authored Mar 4, 2021
2 parents dedcab2 + 0c46408 commit 58ea460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/interop/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58ea460

Please sign in to comment.