What does it mean to declare an item of type contract?

Wasn’t quite sure how to word the title, but in the following code: contract KittyInterface { … } contract ZombieFeeding is ZombieFactory { KittyInterface kittyContract; } what is the declaration KittyInterface kittyContract; creating? I saw that it can be be initialized with KittyInterface kittyContract = KittyInterface(ckAddress); where ckAddress is the address of the interface contract…

transactions fails with my smart contract of etherdelta

I just tried to build smart contract etherdelta After using on my page chipuca.github.io i get the following error when do a deposit or anything else https://etherscan.io/tx/0x9b633cd278c07eca4757909c4174c39d707d5ee883a66fc0995072888696958d The contract is: https://github.com/etherdelta/smart_contract And just i used remix.ethereum to build it What i’m doing wrong? In this works in the other contract created by the creator You…

Clone factory and constructor arguments

In my project I’m using a Clone Factory: https://github.com/optionality/clone-factory/tree/master/contracts function createClone(address target) external returns (address result) { bytes20 targetBytes = bytes20(target); assembly { let clone := mload(0x40) mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(clone, 0x14), targetBytes) mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) result := create(0, clone, 0x37) } addr = result; } It works for contracts without constructor or contracts with empty…

Web3 is not defined – Require not found

I am trying to connect and interact with a local blockchain (using ganache-cli) through the web3js library. I have created a local website that uses web3js library but I keep getting the following error message in my browser console when I try to load the web page. ReferenceError: require is not defined web3.min.js:1:636 <anonymous> https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js:1…