-
Notifications
You must be signed in to change notification settings - Fork 434
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
Implement Compilation tests with 100% coverage #1856
Implement Compilation tests with 100% coverage #1856
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of questions and minor findings.
packages/lib-sourcify/test/Compilation/SolidityCompilation.spec.ts
Outdated
Show resolved
Hide resolved
@@ -112,17 +111,6 @@ export class SolidityCompilation extends AbstractCompilation { | |||
|
|||
const auxdataFromRawRuntimeBytecode = `${runtimeAuxdataCbor}${runtimeCborLengthHex}`; | |||
|
|||
// For some reason the auxdata from raw bytecode differs from the legacyAssembly's auxdata | |||
if (auxdatasFromCompilerOutput[0] !== auxdataFromRawRuntimeBytecode) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain why we don't need to handle this case anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be a problem of the compiler. I don't think we have to handle this case.
Here we are not checking the auxdata against onchain bytecode, but recompilied bytecode. So the only case in which something like this would happen is if the compiler writes an auxdata in the legacyAssembly that is not the same as the one in the bytecode.
packages/lib-sourcify/test/Compilation/VyperCompilation.spec.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Manuel Wedler <34456797+manuelwedler@users.noreply.github.com>
Co-authored-by: Manuel Wedler <34456797+manuelwedler@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
d1491e1
into
verification-flow-refactoring-main
* push vyper tests (still need refactoring) * Implement solidity test to get 100% coverage * Refactor Vyper tests * refactor solidity tests * Update packages/lib-sourcify/src/Compilation/VyperCompilation.ts Co-authored-by: Manuel Wedler <34456797+manuelwedler@users.noreply.github.com> * Update packages/lib-sourcify/test/Compilation/VyperCompilation.spec.ts Co-authored-by: Manuel Wedler <34456797+manuelwedler@users.noreply.github.com> * fix duplicate check --------- Co-authored-by: Manuel Wedler <34456797+manuelwedler@users.noreply.github.com>
TODO