-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtest.sol
45 lines (35 loc) · 951 Bytes
/
test.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
34
35
36
37
38
39
40
41
42
43
44
45
pragma solidity ^0.4.0;
contract BlockNapTEST {
string public fecha;
string public emisor;
string public receptor;
string public asunto;
event logEvent(
address indexed _from,
string indexed typeM,
string indexed value
);
/**
* Constructor
*/
function BlockNapTEST(string _fecha, string _emisor, string _receptor, string _asunto){
fecha = _fecha;
emisor = _emisor;
receptor = _receptor;
asunto = _asunto;
}
function getFecha() constant returns (string) {
emit logEvent(msg.sender,"fecha",fecha);
return fecha;
}
function getEmisor() constant returns (string) {
emit logEvent(msg.sender,"emisor",emisor);
return emisor;
}
function getReceptor() constant returns (string) {
return receptor;
}
function getAsunto() constant returns (string) {
return asunto;
}
}