To subscribe to this RSS feed, copy and paste this URL into your RSS reader. Line 13-15: Creating a function setCounterAddr which accepts `_counter` as an argument. We've intentionally left this page in English for now. Learn more about Stack Overflow the company, and our products. The other two arguments in the abi.encodeWithSignature() are arguments passed to the foo() function when it is being called. If you have any feedback, feel free to reach out to us via Twitter. How a top-ranked engineering school reimagined CS curriculum (Ep. I have 3 contracts that I am trying to deploy.2 are dependent on the third one, but for some reason, I am unable to call function from the other contract. Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. What am I doing wrong here. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. You can always chat with us on our Discord community server, featuring some of the coolest developers you'll ever meet :). There's a little more choreography involved. I have added the address public owner to contract A. Did the Golden Gate Bridge 'flatten' under the weight of 300,000 people in 1987? Can you also explain what are you expecting to be returned? Connect and share knowledge within a single location that is structured and easy to search. calling one contract to another contract method. Learn more about Stack Overflow the company, and our products. Tikz: Numbering vertices of regular a-sided Polygon, Generate points along line, specifying the origin of point generation in QGIS. Has depleted uranium been considered for radiation shielding in crewed spacecraft beyond LEO? So the abi object that contains the encodeWithSignature() method is the standard way to interact with contracts in the Ethereum ecosystem. Now you will see two contracts under the "Deployed Contracts" section in Remix. If you want the msg.sender to be the original transaction sender (the user), you need to use a delegatecall (docs). To subscribe to this RSS feed, copy and paste this URL into your RSS reader. If you are new to development in general, Alchemy's 3-week JavaScript crash course is a great prerequisite before starting an Ethereum bootcamp.