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

fix(solc/etherscan): trim constructor args #1024

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Mar 14, 2022

Motivation

Ref foundry-rs/foundry#931
When the constructor args argument comes from an inline cast abi-encode output, there's a newline that can break verification.

Solution

trim before stripping 0x

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

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.

2 participants