Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I need to know that what type of data i can pass in uniswapV2Call. #6

Open
vamsichilukuri opened this issue Sep 2, 2021 · 1 comment

Comments

@vamsichilukuri
Copy link

I successfully run this code in remix and I was confused about what type of value I can pass here to get the flash loan. I need an explanation about this contract.

@aamir-067
Copy link

You can send any data so that you can use it later using abi.decode() method. to send data make sure you use abi.encode() function.

bytes memory data = abi.encode(_tokenToBorrow, _amountToBorrow, msg.sender);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants