Eth2.0-specs: PoW chain contract does not compile in the latest version of Vyper

Created on 4 Dec 2018  路  5Comments  路  Source: ethereum/eth2.0-specs

Compilation of the PoW chain contract must be done using using v0.1.0-beta.4. Compilation in the latest version v0.1.0-beta.5 results in the following error:

vyper-0.1.0b5-py3.7.egg/vyper/types/types.py:328: DeprecationWarning: Mapping definitions using subscript have deprecated (see VIP564). Use map(type1, type2) instead.
Error compiling: vrc.vy
vyper.exceptions.InvalidTypeException: line 11: Unknown list type.
receipt_tree: bytes32[uint256]
--------------^

bug

All 5 comments

Tried to change the line to receipt_tree: map(uint256, bytes32) but am getting the following error

vyper.exceptions.StructureException: map expects one arg (the type)

Pinged the vyper guys in gitter and am awaiting a response.

apparently it was a bug in v0.1.0-beta.5 that has already been fixed in master. Should be fixed in next release

Made vyper version explicit in the spec. Will update when next release

This is erroring out for me on v0.1.0b10

This is erroring out for me on v0.1.0b10

How did you solve this? I have the same issue with this version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mhchia picture mhchia  路  3Comments

paulhauner picture paulhauner  路  4Comments

mratsim picture mratsim  路  4Comments

paulhauner picture paulhauner  路  4Comments

ralexstokes picture ralexstokes  路  3Comments