This question already has an answer here:
- Delegatecall for approve 1 answer
I made a delegatecall to the REP contract to approve my contract to spend tokens on behalf of a user and my transaction is failing for some reason here is my code:
(bool b,) = REPAddress.delegatecall(abi.encodeWithSignature("approve(address, uint256)", this, noShowBondPayment)); require(b, "delegatecall failed");
Am I using delegatecall correctly?