Skip to content

feat: bubble up error in stylus init #338

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

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft

Conversation

gzeoneth
Copy link
Member

@gzeoneth gzeoneth commented May 2, 2025

No description provided.

@gzeoneth gzeoneth requested review from godzillaba and TucksonDev May 2, 2025 09:34
@cla-bot cla-bot bot added the s label May 2, 2025
Copy link
Contributor

@TucksonDev TucksonDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines 80 to 88
if (!success) {
revert ContractInitializationError(newContractAddress);
if (data.length > 0) {
assembly {
revert(add(data, 32), mload(data))
}
} else {
revert ContractInitializationError(newContractAddress);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a strong preference, but I think this is slightly better

revert ContractInitializationError(newContractAddress, data)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants