You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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().
The text was updated successfully, but these errors were encountered:
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().The text was updated successfully, but these errors were encountered: