Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Preserve account balance across create/create2 #565

Merged
merged 1 commit into from Jul 26, 2021

Conversation

edfelten
Copy link
Contributor

This preserves the state of an account, except for contract-related parts, across create or create2 operations that create contracts at the account's address.

@PlasmaPower
Copy link
Contributor

What if the constructor has callvalue and/or moves balance to/from its address? I think we need to re-fetch the account afterwards.

@PlasmaPower
Copy link
Contributor

PlasmaPower commented Jul 26, 2021

Nevermind, this set is for the constructor itself, not the constructed contract. The latter already re-fetches the account.

Copy link
Contributor

@PlasmaPower PlasmaPower left a comment

Choose a reason for hiding this comment

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

LGTM

@edfelten edfelten merged commit 968fcf1 into upgrade-4 Jul 26, 2021
@edfelten edfelten deleted the create-to-funded-account branch July 26, 2021 15:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants