You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the user calls a script using gnokey maketx run The result of OriginPkgAddress is the user's address instead of the realms being called.
If we see the run command as a sequence of calls to call commands, every function called should have the originPkgAddress as itself. Example:
package main
import (
"gno.land/r/pkg/one""gno.land/r/pkg/two"
)
funcmain() {
out:=one.Function() // std.OriginPkgAddress() should be gno.land/r/pkg/one but it is the user's address.two.DoSomething(out) // std.OriginPkgAddress() should be gno.land/r/pkg/two but it is the user's address.
}
The text was updated successfully, but these errors were encountered:
Description
When the user calls a script using
gnokey maketx run
The result of OriginPkgAddress is the user's address instead of the realms being called.If we see the run command as a sequence of calls to call commands, every function called should have the originPkgAddress as itself. Example:
The text was updated successfully, but these errors were encountered: