upgrade: TxDescriptor<
    {
        impl_address: FixedSizeBinary<20>;
        impl_code_hash: FixedSizeBinary<32>;
        initializer?: { maximum_required_gas: bigint; params: Binary };
    },
>

Sends command to the Gateway contract to upgrade itself with a new implementation contract

Fee required: No

  • origin: Must be Root.
  • impl_address: The address of the implementation contract.
  • impl_code_hash: The codehash of the implementation contract.
  • initializer: Optionally call an initializer on the implementation contract.