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
defcf566
Commit
defcf566
authored
Nov 03, 2016
by
Federico Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace deprecated suicide with selfdestruct
parent
75485ca3
Hide 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 @
defcf566
...
@@ -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 @
defcf566
...
@@ -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