Ethereum Smart Contract Programming

@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);
}

}

1 Like