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

script: regenesis #11

Merged
merged 12 commits into from
Apr 13, 2021
Merged

script: regenesis #11

merged 12 commits into from
Apr 13, 2021

Conversation

tynes
Copy link
Contributor

@tynes tynes commented Apr 8, 2021

Description
Adds the state surgery script required for regenesis. This depends on the contracts being build and served with yarn serve

$ STATE_DUMP_PATH=http://127.0.0.1:8081/state-dump.latest.json \
    SEQUENCER_ENDPOINT=http://127.0.0.1:8547 \
    node state-surgery.js  | jq . | tee state-dump.json

scripts/state-surgery.js Outdated Show resolved Hide resolved
@tynes tynes marked this pull request as ready for review April 8, 2021 21:59
scripts/state-surgery.js Outdated Show resolved Hide resolved
scripts/state-surgery.js Outdated Show resolved Hide resolved
Comment on lines +116 to +142
function getFindAndReplacedCode(str) {
return str.split(
'336000905af158601d01573d60011458600c01573d6000803e3d621234565260ea61109c52'
).join(
'336000905af158600e01573d6000803e3d6000fd5b3d6001141558600a015760016000f35b'
)
}
Copy link

Choose a reason for hiding this comment

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

🤔 @ben-chain

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tynes tynes changed the title Fix/script script: regenesis Apr 13, 2021
@tynes tynes merged commit 9ad4f4e into main Apr 13, 2021
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.

3 participants