Hot answers tagged

1

In solidity 0.5.x you need to specify the memory location of parameters, and whether or not address variables are payable. The below should work: pragma solidity ^0.5.1; contract testArray { address payable addr; function testA(address payable _addr, uint[] memory emp) public{ addr = _addr; for(uint i=0; i<emp.length; ++i){ ...


1

I figured it out. The problem was the compiler version of solidity. The smart contract only works with a solidity version below 0.5.4. There is already a Ticket in Github. For more information check: https://github.com/paritytech/parity-ethereum/issues/10502


Only top voted, non community-wiki answers of a minimum length are eligible