1

i want to send some LINK to a contract B from a contract A, and in the same function call a function in contract B, im using transferAndCall(address _to, uint _value, bytes _data) function in the LinkToken contract, my question is : what should i put in the _data parametre and if you can give an exemple on how to do it so it can be more apparent ?

1 Answer 1

1

If you're just transferring tokens I don't think you need to put anything in the data parameter.

The data parameter is only used to pass additional parameters to indicate what the intention of the transfer is if a contract allows transfers for multiple reasons.

3
  • what value should i put ? i can't let it empty
    – noro meb
    Jan 28, 2023 at 14:54
  • 0x00000000000000000000000000000000 does this work?
    – shankar
    Jan 28, 2023 at 15:01
  • yes it does, thank you
    – noro meb
    Jan 28, 2023 at 15:09

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.