rooch-network / rooch

VApp Container with Move Language for Bitcoin ecosystem
https://rooch.network
Apache License 2.0
162 stars 85 forks source link

[genesis] Create framework account when init genesis #2551

Closed jolestar closed 2 months ago

jolestar commented 2 months ago

Proposal Details

part of #2402

Auto creates all the system reserved accounts when init genesis.

0x1,0x2,0x3,0x4 .. 0xa.

public fun is_system_reserved_address(addr: address): bool {
        // addr == @0x0 ||
        addr == @0x1 ||
        addr == @0x2 ||
        addr == @0x3 ||
        addr == @0x4 ||
        addr == @0x5 ||
        addr == @0x6 ||
        addr == @0x7 ||
        addr == @0x8 ||
        addr == @0x9 ||
        addr == @0xa
    }