Hello i am trying to import the permit2 following the official uniswap's guide but i cannot manage to import it correctly since it lacks of the structs and more things even if i don't get any error when importing it.

import {IAllowanceTransfer} from "@uniswap/Permit2/src/interfaces/IAllowanceTransfer.sol";

this is what i'm trying to do, could someone help me out?

  • What's the error? Can you share your code? Are you using the correct version of the uniswap package?
    – Ismael
    Dec 5, 2023 at 5:19
  • @Ismael hi, i imported it directly from github and all seems to work! Dec 5, 2023 at 10:26
  • Please, add your solution as answer so it can help others!
    – Ismael
    Dec 5, 2023 at 21:11


Your Answer

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

Browse other questions tagged or ask your own question.