@payable
public init(implicit _value : inout Wei)
mutates (Wei.rawValue)
{
...
let amountToTransfer: Int = _value.rawValue
self.value = Wei(0)
value.transfer(source: &_value, amount: amountToTransfer)
...
}
This gives an error in EVM IR Preprocessor: received unexpected type 'errorType'
I also tried using exactly same lines in a normal function, it works fine.
The other case, transfer(source: &_value) works fine in init().
This gives an error in
EVM IR Preprocessor: received unexpected type 'errorType'
I also tried using exactly same lines in a normal function, it works fine.The other case,
transfer(source: &_value)
works fine in init().