aboutsummaryrefslogtreecommitdiffstats
path: root/docs/solidity-by-example.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/solidity-by-example.rst')
-rw-r--r--docs/solidity-by-example.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst
index b1bc11d9..52beb862 100644
--- a/docs/solidity-by-example.rst
+++ b/docs/solidity-by-example.rst
@@ -792,7 +792,7 @@ The full contract
mapping(uint256 => bool) usedNonces;
- function ReceiverPays() public payable {}
+ constructor() public payable {}
function claimPayment(uint256 amount, uint256 nonce, bytes signature) public {
require(!usedNonces[nonce]);
@@ -801,7 +801,7 @@ The full contract
// this recreates the message that was signed on the client
bytes32 message = prefixed(keccak256(msg.sender, amount, nonce, this));
- require(recoverSigner(message,sig) == owner);
+ require(recoverSigner(message, signature) == owner);
msg.sender.transfer(amount);
}
@@ -841,7 +841,7 @@ The full contract
pure
returns (address)
{
- uint8;
+ uint8 v;
bytes32 r;
bytes32 s;