Skip to content
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

Update to Cadence v0.15.1 and Go SDK v0.18.0, Add balance fields to AuthAccount and PublicAccount #636

Merged
merged 12 commits into from
Apr 21, 2021

Conversation

janezpodhostnik
Copy link
Contributor

@janezpodhostnik janezpodhostnik commented Apr 16, 2021

ref: https://github.com/dapperlabs/flow-internal/issues/1499

Release notes:

Before merging:

@turbolent
Copy link
Member

Looks good! Is there a particular reason this PR also removes the state migrations? Totally agree with removing them, was just curious. In case it's not related maybe a separate PR would be nice, but minor

@turbolent turbolent changed the title Added balance fields to AuthAccount and PublicAccount Update to Cadence v0.15.1 and Go SDK v0.18.0, Add balance fields to AuthAccount and PublicAccount Apr 21, 2021
@@ -19,7 +19,7 @@ import (
const ServiceAccountPrivateKeyHex = "e3a08ae3d0461cfed6d6f49bfc25fa899351c39d1bd21fdba8c87595b6c49bb4cc430201"

// Pre-calculated state commitment with root account with the above private key
const GenesisStateCommitmentHex = "344eb8ba50c683c1d9d5662afb8800f641518bc8349bf2427cb919e7f7a95edb"
const GenesisStateCommitmentHex = "66d3604b5d9c458c7e72a59a9e10064b89d1d6657ce59954963305417460ea1f"
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't seem right, I don't think we have changed anything that should impact the statecommitment of the genesis? or did we?

Copy link
Member

Choose a reason for hiding this comment

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

See the description of the issue, Cadence v0.15.0 changed the storage format

@turbolent turbolent requested a review from ramtinms April 21, 2021 17:49
@turbolent
Copy link
Member

@joshuahannan do you know if there's now a tag available for the core contracts that includes onflow/flow-core-contracts#159 ?

@joshuahannan
Copy link
Member

@turbolent No, but I'll do a new release so you can get it

@turbolent
Copy link
Member

@joshuahannan perfect, thanks! Please let me know when it's ready and I can update this PR

@turbolent
Copy link
Member

@ramtinms the revert of the multi-contract state migration re-introduced a breaking test, it assumes that the Cadence version is able to decode the test's data, but it's in the now deprecated format.
I skipped the test, as we can't keep updating those old state migration functions

@turbolent turbolent merged commit dc63e95 into master Apr 21, 2021
@turbolent turbolent deleted the janez/account-balance-fields branch April 21, 2021 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants