address payable constant public pillowInc = address(uint160(0x4B38016118FDE970e2371740F849840aEc745c7B));
  address payable constant public pillowInc = 0x4B38016118FDE970e2371740F849840aEc745c7B;

The compiler is complaining about "TypeError: Type address is not implicitly convertible to expected type address payable."

The above methods are what I found on StackExchange. Can anyone help me get this thing to compile? Compiler version 0.8.10

1 Answer 1

address payable pillowInc = payable(0x4B38016118FDE970e2371740F849840aEc745c7B);

This worked.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.