Equivelant of upgradable contract in sway?

In Ethereum, the upgradable contract can be done with the proxy and delegatecall.

is it possible to have an upgradable contract on Fuel

Equivalent functionality to the EVM’s delegatecall will eventually be possible thanks to the LDC opcode. This will allow loading and execution of code from an external contract in the current context, which will allow implementation of upgradeable contracts, proxies, etc.

This is not yet supported in Sway, but it’s on the roadmap! You can follow a related issue here or check out the spec.


This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.