hey guys, any1 can help me on how to call with solidity a contract function from another contract? I can do this for read functions, but for "write" functions I get REVER. I don't know what to search for, maybe i have to use private keys somehow?

Nov 23, 2020, 11:57 PM
Delegate function.
Nov 24, 2020, 12:54 AM
https://medium.com/@blockchain101/calling-the-function-of-another-contract-in-solidity-f9edfa921f4c
Nov 24, 2020, 12:56 AM
Thx a lot!!
Hey I tried this but the SC calls itself instead of the other SC ?!
This is the function : address(b).delegatecall(abi.encodeWithSignature("trxToTokenSwapOutput(uint256,uint256)",_tokens_bought,1634146981));
Nov 27, 2020, 1:24 AM

© 2024 Draquery.com All rights reserved.