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

Audit Issue 9: Remove unused code #1317

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Audit Issue 9: Remove unused code #1317

merged 2 commits into from
Oct 22, 2024

Conversation

claravanstaden
Copy link
Contributor

Resolves: SNO-1201

@@ -650,7 +631,6 @@ contract Gateway is IGateway, IInitializable, IUpgradable {
// Initialize agent for BridgeHub
address bridgeHubAgent = address(new Agent(BRIDGE_HUB_AGENT_ID));
core.agents[BRIDGE_HUB_AGENT_ID] = bridgeHubAgent;
core.agentAddresses[bridgeHubAgent] = BRIDGE_HUB_AGENT_ID;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we should rather leave these in, in case we need this data later. I also understand we can't remove the storage mapping without a migration, so it might not be worthwhile to remove this in the first place.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also dont we still need agents for Transact support?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably yeah. I'll revert these.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted in d15b6df.

@claravanstaden claravanstaden marked this pull request as ready for review October 17, 2024 09:00
@claravanstaden claravanstaden merged commit a997d03 into main Oct 22, 2024
1 check passed
@claravanstaden claravanstaden deleted the audit-9 branch October 22, 2024 12:55
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