Skip to content

Commit

Permalink
Merge pull request #1623 from eth-brownie/vyper_immutables
Browse files Browse the repository at this point in the history
handle vyper immutables
  • Loading branch information
charles-cooper authored Oct 7, 2022
2 parents a423e1f + 5390a60 commit f7bb493
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions brownie/network/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -2005,6 +2005,11 @@ def _verify_deployed_code(address: str, expected_bytecode: str, language: str) -
idx = -(int(expected_bytecode[-4:], 16) + 2) * 2
expected_bytecode = expected_bytecode[:idx]

if language == "Vyper":
# don't check immutables section
# TODO actually grab data section length from layout.
return actual_bytecode.startswith(expected_bytecode)

return actual_bytecode == expected_bytecode


Expand Down

0 comments on commit f7bb493

Please sign in to comment.