Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Fix huffconfig address #88

Merged
merged 2 commits into from
Jan 29, 2023

Conversation

MerlinEgalite
Copy link
Contributor

@MerlinEgalite MerlinEgalite commented Nov 27, 2022

Ownable tests were not passing locally because the huffConfig address wasn't the correct one.

This is because this function:
https://github.com/huff-language/foundry-huff/blob/eb9ea316389e8bd580f92908b8454399401d0316/src/HuffDeployer.sol#L10-L12
returns a new HuffConfig each it's called. For a long-term fix I would propose to apply the library to a config contract instead of creating one each time a function from the lib is called.

Here is a similar issue: huff-language/foundry-huff#24

MathisGD
MathisGD previously approved these changes Dec 3, 2022
Copy link
Collaborator

@MathisGD MathisGD left a comment

Choose a reason for hiding this comment

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

LGTM

Otherwise, you could use set_broadcast, which would put msg.sender as owner.

@devtooligan
Copy link
Collaborator

devtooligan commented Jan 29, 2023

this should prob be merged, but we need to figure out if we are still using the dev branch or not.

asked this question in the core discord channel, so lets hold off on merging anything until we reach a decision on the dev branch

https://discord.com/channels/980519274600882306/981015573104304209/1069326110732603452

devtooligan
devtooligan previously approved these changes Jan 29, 2023
Copy link
Collaborator

@devtooligan devtooligan left a comment

Choose a reason for hiding this comment

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

lgtm

@Maddiaa0 Maddiaa0 mentioned this pull request Jan 29, 2023
@devtooligan
Copy link
Collaborator

merging to dev this will likely be the last merge to dev then we will merge to main after this

@devtooligan devtooligan changed the base branch from main to dev January 29, 2023 22:50
@devtooligan devtooligan dismissed stale reviews from MathisGD and themself January 29, 2023 22:50

The base branch was changed.

Copy link
Collaborator

@devtooligan devtooligan left a comment

Choose a reason for hiding this comment

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

lgtm

@devtooligan devtooligan merged commit e44b387 into huff-language:dev Jan 29, 2023
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.

3 participants