-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Constructor Support for Solang Solidity Contracts on Soroban #1674
Add Constructor Support for Solang Solidity Contracts on Soroban #1674
Conversation
…onstructor Signed-off-by: Tarek <[email protected]>
239ae3f
to
ecac9fe
Compare
Signed-off-by: Tarek <[email protected]>
ecac9fe
to
b66e4af
Compare
Signed-off-by: Tarek <[email protected]>
b66e4af
to
ba848bb
Compare
@@ -15,7 +15,7 @@ jobs: | |||
uses: actions/checkout@v4 | |||
with: | |||
submodules: recursive | |||
- uses: dtolnay/rust-toolchain@1.75.0 | |||
- uses: dtolnay/rust-toolchain@1.81.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is that change related to the PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
soroban-sdk
22.0.0-rc.3.2 requires rustc 1.79.0 or newer, and soroban-cli
(which we use in the CI) now requires rustc 1.81.0 or newer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
de4fc34
into
hyperledger-solang:main
This PR is the first step towards implementing #1672. It adds constructor support for Solidity contracts in Solang. The next step, not covered in this PR, is handling cases where the user defines a
__constructor
function with custom logic. More details can be found in the issue discussion.Changes Made
init
function (used to callstorage_initializers
) to__constructor
so that it is recognized and invoked by the Soroban host environment.