Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

/crossrealm_e package

Function

SetOwner

func SetOwner(o address)

SetOwner is an internal helper that was exported by mistake (should be setOwner). Without the pre-mutation readonly check, a cross-realm caller could call SetOwner + recover to silently hijack ownership in memory, then call TransferToken to steal funds.

Param

Command

gnokey query vm/qeval -remote "https://api.gno.berty.io:443" -data "gno.land/r/tests/vm/crossrealm_e.SetOwner()"

Result