From 62eb0b96774193ca6f7344ace31ee8d7544a03fc Mon Sep 17 00:00:00 2001 From: Bernhard Mueller Date: Mon, 12 Mar 2018 17:24:21 +0700 Subject: [PATCH] Finalize return value example --- solidity_examples/returnvalue.sol | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/solidity_examples/returnvalue.sol b/solidity_examples/returnvalue.sol index 0f7b5fd4..819580f3 100644 --- a/solidity_examples/returnvalue.sol +++ b/solidity_examples/returnvalue.sol @@ -2,18 +2,12 @@ contract ReturnValue { address callee = 0xE0F7e56e62b4267062172495D7506087205A4229; - function call1() returns (uint256) { + function callnotchecked() { callee.call(); } - function call2() returns (uint256) { - - - } - - function call3() returns (uint256) { - - + function callchecked() { + require(callee.call()); } } \ No newline at end of file