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
11cf9f87
Commit
11cf9f87
authored
Dec 21, 2016
by
Manuel Aráoz
Committed by
GitHub
Dec 21, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #118 from mediachain/master
Add payable modifier to bid functions in examples
parents
bb22cd62
9c81dd29
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
BadPushPayments.sol
contracts/examples/BadPushPayments.sol
+1
-1
GoodPullPayments.sol
contracts/examples/GoodPullPayments.sol
+1
-1
PullPaymentBid.sol
contracts/examples/PullPaymentBid.sol
+1
-1
StoppableBid.sol
contracts/examples/StoppableBid.sol
+1
-1
No files found.
contracts/examples/BadPushPayments.sol
View file @
11cf9f87
...
@@ -7,7 +7,7 @@ contract BadPushPayments {
...
@@ -7,7 +7,7 @@ contract BadPushPayments {
address highestBidder;
address highestBidder;
uint highestBid;
uint highestBid;
function bid() {
function bid()
payable
{
if (msg.value < highestBid) throw;
if (msg.value < highestBid) throw;
if (highestBidder != 0) {
if (highestBidder != 0) {
...
...
contracts/examples/GoodPullPayments.sol
View file @
11cf9f87
...
@@ -6,7 +6,7 @@ contract GoodPullPayments {
...
@@ -6,7 +6,7 @@ contract GoodPullPayments {
uint highestBid;
uint highestBid;
mapping(address => uint) refunds;
mapping(address => uint) refunds;
function bid() external {
function bid() external
payable
{
if (msg.value < highestBid) throw;
if (msg.value < highestBid) throw;
if (highestBidder != 0) {
if (highestBidder != 0) {
...
...
contracts/examples/PullPaymentBid.sol
View file @
11cf9f87
...
@@ -8,7 +8,7 @@ contract PullPaymentBid is PullPayment {
...
@@ -8,7 +8,7 @@ contract PullPaymentBid is PullPayment {
address public highestBidder;
address public highestBidder;
uint public highestBid;
uint public highestBid;
function bid() external {
function bid() external
payable
{
if (msg.value <= highestBid) throw;
if (msg.value <= highestBid) throw;
if (highestBidder != 0) {
if (highestBidder != 0) {
...
...
contracts/examples/StoppableBid.sol
View file @
11cf9f87
...
@@ -9,7 +9,7 @@ contract StoppableBid is Stoppable, PullPayment {
...
@@ -9,7 +9,7 @@ contract StoppableBid is Stoppable, PullPayment {
address public highestBidder;
address public highestBidder;
uint public highestBid;
uint public highestBid;
function bid() external stopInEmergency {
function bid() external
payable
stopInEmergency {
if (msg.value <= highestBid) throw;
if (msg.value <= highestBid) throw;
if (highestBidder != 0) {
if (highestBidder != 0) {
...
...
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