Skip to content

Instantly share code, notes, and snippets.

@0xBigBoss
Last active July 29, 2023 22:25
Show Gist options
  • Save 0xBigBoss/d1a576d857f77dbe42292daa7a32bb2e to your computer and use it in GitHub Desktop.
Save 0xBigBoss/d1a576d857f77dbe42292daa7a32bb2e to your computer and use it in GitHub Desktop.
Pocket Network v1 Upgrade Feature e2e

Upgrade Feature e2e

You need to have zx installed before executing this file.

npm install -g zx
zx upgrade.zx.md

Ensure ACL Owner is imported

await $`bin/p1 keys import ff538589deb7f28bbce1ba68b37d2efc0eaa03204b36513cf88422a875559e38d6cbe0430ddd85a5e48e0c99ef3dea47bf0d1a83c6e6ad1640f72201dc8a0120 --non_interactive`

Submit Upgrade

const height = (await $`bin/p1 query height | jq .height`).stdout.trim()
await $`bin/p1 gov upgrade da034209758b78eaea06dd99c07909ab54c99b45 2.0.1 ${parseInt(height) + 2}  --non_interactive`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment