Search by name, SuiNS, address, digest, object ID, coin type or checkpoint.

forwarding_address

Module0x0000…0002
Move path
0x0000…0002::forwarding_address
Functions
10 public, 0 entry
Structs
1
Friend modules
None
forwarding_address

Bytecode36 lines

The on-chain disassembly. Offsets are instruction numbers within each function.

// Move bytecode v7
module 2.forwarding_address {
use 0000000000000000000000000000000000000000000000000000000000000002::object;
use 0000000000000000000000000000000000000000000000000000000000000002::transfer;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
 
struct ForwardingAddressRegistry has key {
id: UID
}
 
create(Arg0: &TxContext) {
B0:
0MoveLoc[0](Arg0: &TxContext)
1Call tx_context::sender(&TxContext): address
2LdConst[2](address: 0x00..)
3Eq
4BrFalse(6)
B1:
5Branch(8)
B2:
6LdU64(13835058162656346113)
7Abort
B3:
8Call object::forwarding_address_registry(): UID
9Pack[0](ForwardingAddressRegistry)
10Call transfer::share_object<ForwardingAddressRegistry>(ForwardingAddressRegistry)
11Ret
}
 
Constants [
0 => vector<u8>: "ENotSystemAddress" // interpreted as UTF8 string
1 => vector<u8>: "Only the system can create the forwarding address registry." // interpreted as UTF8 string
2 => address: 0x0000000000000000000000000000000000000000000000000000000000000000
]
}