Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some deprecated keyword for creating interfaces #50

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lesson-2/chapter-10/zombiefeeding.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.4.25;
import "./zombiefactory.sol";
contract KittyInterface {
interface KittyInterface {
function getKitty(uint256 _id) external view returns (
bool isGestating,
bool isReady,
Expand All @@ -14,6 +14,7 @@ contract KittyInterface {
uint256 genes
);
}

contract ZombieFeeding is ZombieFactory {

function feedAndMultiply(uint _zombieId, uint _targetDna) public {
Expand All @@ -24,4 +25,4 @@ contract ZombieFeeding is ZombieFactory {
_createZombie("NoName", newDna);
}

}
}
2 changes: 1 addition & 1 deletion lesson-2/chapter-11/zombiefeeding.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.4.25;
import "./zombiefactory.sol";
contract KittyInterface {
interface KittyInterface {
function getKitty(uint256 _id) external view returns (
bool isGestating,
bool isReady,
Expand Down
2 changes: 1 addition & 1 deletion lesson-2/chapter-12/zombiefeeding.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.4.25;
import "./zombiefactory.sol";
contract KittyInterface {
interface KittyInterface {
function getKitty(uint256 _id) external view returns (
bool isGestating,
bool isReady,
Expand Down
2 changes: 1 addition & 1 deletion lesson-2/chapter-13/zombiefeeding.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.4.25;
import "./zombiefactory.sol";
contract KittyInterface {
interface KittyInterface {
function getKitty(uint256 _id) external view returns (
bool isGestating,
bool isReady,
Expand Down