-
Notifications
You must be signed in to change notification settings - Fork 0
/
NoNPMtest1.sol
33 lines (28 loc) · 915 Bytes
/
NoNPMtest1.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pragma solidity ^0.5.11;
import "../crowdsale/validation/CappedCrowdsale.sol";
import "./crowdsale/validation/CappedCrowdsale.sol";
import "../../crowdsale/validation/CappedCrowdsale.sol";
contract Caller {
function someAction(address addr) returns(uint) {
Callee c = Callee(addr);
return c.getValue(100);
}
function storeAction(address addr) returns(uint) {
Callee c = Callee(addr);
c.storeValue(100);
return c.getValues();
}
function someUnsafeAction(address addr) {
addr.call(bytes4(keccak256("storeValue(uint256)")), 100);
}
}
contract Callee {
function someUnsafeAction(address addr) {
addr.call(bytes4(keccak256("storeValue(uint256)")), 100);
}
}
contract Callee {
function getValue(uint initialValue) returns(uint);
function storeValue(uint value);
function getValues() returns(uint);
}