diff options
author | Yigit Sever | 2021-04-23 01:41:18 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-23 01:41:18 +0300 |
commit | 63d08a9f120e842dcc5a34a1db6b39957c643b30 (patch) | |
tree | 74fc517fb6f6a466806aae02248c5dc7020ee9f3 /examples/serdeser.rs | |
parent | e9bf8a1a85d9366e59ec7989772d4e16490f1273 (diff) | |
download | gradecoin-63d08a9f120e842dcc5a34a1db6b39957c643b30.tar.gz gradecoin-63d08a9f120e842dcc5a34a1db6b39957c643b30.tar.bz2 gradecoin-63d08a9f120e842dcc5a34a1db6b39957c643b30.zip |
[WIP] Done, untested
Diffstat (limited to 'examples/serdeser.rs')
-rw-r--r-- | examples/serdeser.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/serdeser.rs b/examples/serdeser.rs index 60d90b9..4fdfdc2 100644 --- a/examples/serdeser.rs +++ b/examples/serdeser.rs | |||
@@ -4,9 +4,8 @@ use serde_json; | |||
4 | pub fn main() { | 4 | pub fn main() { |
5 | 5 | ||
6 | let tx = Transaction { | 6 | let tx = Transaction { |
7 | by: "fingerprint_of_some_guy".to_owned(), | 7 | source: "fingerprint_of_some_guy".to_owned(), |
8 | source: "31415926535897932384626433832795028841971693993751058209749445923".to_owned(), | 8 | target: "31415926535897932384626433832795028841971693993751058209749445923".to_owned(), |
9 | target: "fingerprint_of_some_guy".to_owned(), | ||
10 | amount: 2, | 9 | amount: 2, |
11 | timestamp: chrono::NaiveDate::from_ymd(2021, 04, 13).and_hms(20, 55, 30), | 10 | timestamp: chrono::NaiveDate::from_ymd(2021, 04, 13).and_hms(20, 55, 30), |
12 | }; | 11 | }; |