solang icon indicating copy to clipboard operation
solang copied to clipboard

Soroban: Support for Constructors

Open tareknaser opened this issue 1 year ago • 0 comments

This PR adds support for user-defined constructors in Soroban, specifically for constructors with no arguments. Note that constructors with arguments are not yet supported (see comments for details). Part of #1672

Other changes include:

  • Refactored code in tests/soroban.rs to allow providing constructors when registering contracts on the chain.
  • Added tests for constructors in tests/soroban_testcases/constructor.rs.

tareknaser avatar Nov 29 '24 23:11 tareknaser