So, I'm setting upon percentage shaving on a token, but I keep throwing an error. Anyone can point to some resource to understand what the heck I am doing wrong? enter image description here

  • Please post your code. The error is clear. Int to address, Type error Commented Dec 26, 2021 at 8:03

2 Answers 2



address payable target = payable(0x1a...27) ;

You want to read the documentation here

This part specifically:

Implicit conversions from address payable to address are allowed, whereas conversions from address to address payable must be explicit via payable(<address>).

So you have to convert it explicitly using address payable target = payable(...);

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.