tx · 2dVDfGFKcpV83MNrpv65hE9AbVfmdG692ekJi74UxE78
3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep: -0.01400000 Waves
2019.07.11 12:31 [580854] smart account 3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep > SELF 0.00000000 Waves
{
"type": 13,
"id": "2dVDfGFKcpV83MNrpv65hE9AbVfmdG692ekJi74UxE78",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1562837459989,
"version": 1,
"sender": "3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep",
"senderPublicKey": "BJAeTqNbDSA5FiYihZZaSWvD6XL5XjpqVXbTGerBJjRK",
"proofs": [
"2Un8tSTS8fjd591qCXadkBQ4gF3cSJ22sX2cTkEAdfu4iCPD3FLi3wjbzBv4uZiTW7wXP1pB1hTs97zbHrKGhiPT"
],
"script": "base64:AAIDAAAAAAAAAAAAAAABAQAAABJ1c2VySGFzQWRtaW5BY2Nlc3MAAAABAAAAB2FkZHJlc3MJAAAAAAAAAgUAAAAHYWRkcmVzcwUAAAAEdGhpcwAAAAIAAAABaQEAAAADYmV0AAAAAQAAAAVwcmljZQQAAAAWc3RhcnRUcmFuc2FjdGlvbkhlaWdodAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAFc3RhcnQEAAAACXRpbWVEZWx0YQkAAGUAAAACBQAAAAZoZWlnaHQFAAAAFnN0YXJ0VHJhbnNhY3Rpb25IZWlnaHQEAAAABm1heEJldAkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAABHRoaXMCAAAABm1heEJldAkAAAIAAAABAgAAAAZoZXJlIDIAAAABaQEAAAAFc3RhcnQAAAABAAAACnN0YXJ0UHJpY2UDCQEAAAABIQAAAAEJAQAAABJ1c2VySGFzQWRtaW5BY2Nlc3MAAAABCAUAAAABaQAAAAZjYWxsZXIJAAACAAAAAQIAAAATWW91IGhhdmUgbm8gYWNjZXNzIQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAFc3RhcnQFAAAABmhlaWdodAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAGbWF4QmV0BQAAAApzdGFydFByaWNlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAttYXhCZXRPd25lcgkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkFAAAAA25pbAAAAACNdhPc",
"chainId": 84,
"height": 580854,
"spentComplexity": 0
}
View: original | compacted
Prev: E4LUf4BmAiqYXe2aXBFuErcTSqLhfTwXpfSv1meVNxWU
Next: Bbc39BiVzVj5vuECz2BDtg2e9WPzyo56ZFfUdZcZMhak
Diff:
Old | New | | Differences |
---|
8 | 8 | | func bet (d) = { |
---|
9 | 9 | | let e = getIntegerValue(this, "start") |
---|
10 | 10 | | let f = (height - e) |
---|
11 | | - | throw("here") |
---|
| 11 | + | let g = extract(getInteger(this, "maxBet")) |
---|
| 12 | + | throw("here 2") |
---|
12 | 13 | | } |
---|
13 | 14 | | |
---|
14 | 15 | | |
---|
15 | 16 | | |
---|
16 | 17 | | @Callable(c) |
---|
17 | | - | func start (g) = if (!(a(c.caller))) |
---|
| 18 | + | func start (h) = if (!(a(c.caller))) |
---|
18 | 19 | | then throw("You have no access!") |
---|
19 | | - | else WriteSet([DataEntry("start", height), DataEntry("maxBet", g), DataEntry("maxBetOwner", toBase58String(c.callerPublicKey))]) |
---|
| 20 | + | else WriteSet([DataEntry("start", height), DataEntry("maxBet", h), DataEntry("maxBetOwner", toBase58String(c.callerPublicKey))]) |
---|
20 | 21 | | |
---|
21 | 22 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b) = (b == this) |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | 7 | | @Callable(c) |
---|
8 | 8 | | func bet (d) = { |
---|
9 | 9 | | let e = getIntegerValue(this, "start") |
---|
10 | 10 | | let f = (height - e) |
---|
11 | | - | throw("here") |
---|
| 11 | + | let g = extract(getInteger(this, "maxBet")) |
---|
| 12 | + | throw("here 2") |
---|
12 | 13 | | } |
---|
13 | 14 | | |
---|
14 | 15 | | |
---|
15 | 16 | | |
---|
16 | 17 | | @Callable(c) |
---|
17 | | - | func start (g) = if (!(a(c.caller))) |
---|
| 18 | + | func start (h) = if (!(a(c.caller))) |
---|
18 | 19 | | then throw("You have no access!") |
---|
19 | | - | else WriteSet([DataEntry("start", height), DataEntry("maxBet", g), DataEntry("maxBetOwner", toBase58String(c.callerPublicKey))]) |
---|
| 20 | + | else WriteSet([DataEntry("start", height), DataEntry("maxBet", h), DataEntry("maxBetOwner", toBase58String(c.callerPublicKey))]) |
---|
20 | 21 | | |
---|
21 | 22 | | |
---|