@thecil, Ok, I tried it and the problem is, that solidity is not capable of returning dynamic arrays from functions.
Read here
Is there a Systems Architecture diagram we can view for Smart Contracts(Solidity), and how it all integrates in to the Ethereum Blockchain Architecture?
hey @Filipā¦Iāve started working on my project to practice my learningā¦so right now Iām working on lending protocol but for real I donāt know how and what to even start withā¦lolā¦seriously Iām confused on thinking on what I need to have in my contract , struct and many others like thatā¦I want to ask from @everyone can I get a sketch of kind of whatās needed in such a lending protocolā¦a p2p lending protocolsā¦ethlend did something of such thenā¦but for lending protocol as a wholeā¦
I have the same question here. The lecture on Ethereum 201 starts with a debugger which is today necessary to be activated to show the bug icon on the menu. Also, I donāt see what transaction id @filip inputed for the debugger.
pragma solidity 0.5.1;
contract DogContract {
function addDog(string memory _name, uint _age) public payable returns (uint);
function getBalance() public view returns (uint) {
// Use the `address(this).balance` expression to get the contract's current balance
return address(this).balance;
}
}
contract ExternalContract {
DogContract dc = DogContract(0x76A846CD2aC2E028626A3d1f5ddf32d3a468423D);
function addExternalDog(string memory _name, uint _age) public payable returns (uint) {
return dc.addDog.value(msg.value)(_name, _age);
}
}