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 source realm

Functions 3

func SetOwner

Action
1func SetOwner(o address)
source

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.

Imports 1

  • chain/runtime/unsafe stdlib

Source Files 2