tx · 7hfT3u4MMwrrA6V1N2EowF2858LYuuWitrHFGDFP6XRy
3N4Pws1hZGMw3qDdRjhinhXr6KVMkcggjgL: -0.01400000 Waves
2019.10.21 18:37 [730026] smart account 3N4Pws1hZGMw3qDdRjhinhXr6KVMkcggjgL > SELF 0.00000000 Waves
{
"type": 13,
"id": "7hfT3u4MMwrrA6V1N2EowF2858LYuuWitrHFGDFP6XRy",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1571672276594,
"version": 1,
"sender": "3N4Pws1hZGMw3qDdRjhinhXr6KVMkcggjgL",
"senderPublicKey": "CwvrpTWSUeB7TpDCw7NdABvqpF6NY2UzMvZZ7SbgrXUM",
"proofs": [
"4uPSHwwBgCCEXCrBBGwGZUP9VFExiH1DYqpptH855z8HaFK3VAxGUX53cPG7DEwGbGjBtd4UCGEMjndYyq5LsoRg"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAQEAAAAVZ2V0VXNlckdvYWxBZGRyZXNzS2V5AAAAAgAAABV1c2VyQWNjb3VudEFkZHJlc3NTdHIAAAAVZ29hbEFjY291bnRBZGRyZXNzU3RyCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAABnVzZXJfPAUAAAAVdXNlckFjY291bnRBZGRyZXNzU3RyAgAAAAQ+X188BQAAABVnb2FsQWNjb3VudEFkZHJlc3NTdHICAAAAAT4AAAABAAAAAWkBAAAAB2FkZEdvYWwAAAABAAAAFWdvYWxBY2NvdW50QWRkcmVzc1N0cgQAAAAHcGF5bWVudAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50CQAAAgAAAAEJAAGkAAAAAQgFAAAAB3BheW1lbnQAAAAGYW1vdW50AAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAawuYTD",
"chainId": 84,
"height": 730026,
"spentComplexity": 0
}
View: original | compacted
Prev: 6k5gNTsxKSSmT3dnCKpTVb3SSXMzjVMhp4yi48bTLydo
Next: CGSfP9xYctWXS6sMCjufWXvC4UQQQrkkU7MxwCXb5SR6
Diff:
Old | New | | Differences |
---|
7 | 7 | | @Callable(i) |
---|
8 | 8 | | func addGoal (goalAccountAddressStr) = { |
---|
9 | 9 | | let payment = extract(i.payment) |
---|
10 | | - | let userAccountAddressStr = toBase58String(i.caller.bytes) |
---|
11 | | - | let userGoalAddressKey = getUserGoalAddressKey(userAccountAddressStr, goalAccountAddressStr) |
---|
12 | | - | if (isDefined(payment.assetId)) |
---|
13 | | - | then throw("you can bet only in waves") |
---|
14 | | - | else WriteSet([DataEntry(userGoalAddressKey, payment.amount)]) |
---|
| 10 | + | throw(toString(payment.amount)) |
---|
15 | 11 | | } |
---|
16 | 12 | | |
---|
17 | 13 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func getUserGoalAddressKey (userAccountAddressStr,goalAccountAddressStr) = (((("user_<" + userAccountAddressStr) + ">__<") + goalAccountAddressStr) + ">") |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | 7 | | @Callable(i) |
---|
8 | 8 | | func addGoal (goalAccountAddressStr) = { |
---|
9 | 9 | | let payment = extract(i.payment) |
---|
10 | | - | let userAccountAddressStr = toBase58String(i.caller.bytes) |
---|
11 | | - | let userGoalAddressKey = getUserGoalAddressKey(userAccountAddressStr, goalAccountAddressStr) |
---|
12 | | - | if (isDefined(payment.assetId)) |
---|
13 | | - | then throw("you can bet only in waves") |
---|
14 | | - | else WriteSet([DataEntry(userGoalAddressKey, payment.amount)]) |
---|
| 10 | + | throw(toString(payment.amount)) |
---|
15 | 11 | | } |
---|
16 | 12 | | |
---|
17 | 13 | | |
---|
18 | 14 | | @Verifier(tx) |
---|
19 | 15 | | func verify () = true |
---|
20 | 16 | | |
---|