Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
0c0eb292
Commit
0c0eb292
authored
Nov 04, 2016
by
Manuel Aráoz
Committed by
GitHub
Nov 04, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #58 from federicobond/selfdestruct
Replace deprecated suicide with selfdestruct
parents
75485ca3
defcf566
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Killable.sol
contracts/Killable.sol
+1
-1
StoppableBid.sol
contracts/examples/StoppableBid.sol
+1
-1
No files found.
contracts/Killable.sol
View file @
0c0eb292
...
@@ -7,6 +7,6 @@ import "./Ownable.sol";
...
@@ -7,6 +7,6 @@ import "./Ownable.sol";
*/
*/
contract Killable is Ownable {
contract Killable is Ownable {
function kill() {
function kill() {
if (msg.sender == owner) s
uicide
(owner);
if (msg.sender == owner) s
elfdestruct
(owner);
}
}
}
}
contracts/examples/StoppableBid.sol
View file @
0c0eb292
...
@@ -18,7 +18,7 @@ contract StoppableBid is Stoppable, PullPayment {
...
@@ -18,7 +18,7 @@ contract StoppableBid is Stoppable, PullPayment {
}
}
function withdraw() onlyInEmergency {
function withdraw() onlyInEmergency {
s
uicide
(owner);
s
elfdestruct
(owner);
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment