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

fix(website): gitops deployment was missing chainId #1378

Merged
merged 13 commits into from
Sep 15, 2024
Merged

Conversation

mjlescano
Copy link
Member

@mjlescano mjlescano commented Sep 14, 2024

This PR fixes the gitops deployment page, by doing the actual fix first, and also fixing the types on the builder so this kind of error is less likely.

  1. The website hook was initialising the simulated build without chainId, that's fixed here: https://github.com/usecannon/cannon/pull/1378/files#diff-1c16184636ccf287d09107e881baa71fba0cc29067ff908c276919cf5922d6b4R266
  2. Now, when fetching deployment packages we make sure it includes chainId to be consistent with old deployments, kinda like a migration: 9c6c542

Copy link

changeset-bot bot commented Sep 14, 2024

⚠️ No Changeset found

Latest commit: bf1b6e8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mjlescano mjlescano changed the title fix(builder): publish was not setting correctly the chainId fix(website): gitops deployment was missing chainId Sep 14, 2024
packages/builder/src/runtime.ts Outdated Show resolved Hide resolved
packages/builder/src/types.ts Outdated Show resolved Hide resolved
packages/website/src/hooks/cannon.ts Outdated Show resolved Hide resolved
const [isBuilding, setIsBuilding] = useState(false);
const [buildStatus, setBuildStatus] = useState('');
const [buildMessage, setBuildMessage] = useState('');
const [buildStatus, setBuildStatus] = useState<'idle' | 'building' | 'success' | 'error'>('idle');
Copy link
Contributor

Choose a reason for hiding this comment

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

👏

@dbeal-eth dbeal-eth merged commit 07e4e8f into main Sep 15, 2024
6 of 8 checks passed
@dbeal-eth dbeal-eth deleted the fix-website-build branch September 15, 2024 17:04
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.

2 participants