tx · 6nZut37B63joHfwjf85w8BsNkNm7XfKEgNApgbnPriNj

3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7:  -0.01400000 Waves

2020.02.03 19:02 [883193] smart account 3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7 > SELF 0.00000000 Waves

{ "type": 13, "id": "6nZut37B63joHfwjf85w8BsNkNm7XfKEgNApgbnPriNj", "fee": 1400000, "feeAssetId": null, "timestamp": 1580745675891, "version": 1, "sender": "3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7", "senderPublicKey": "JAAzQjxgzdgjCEdwXpfgpoMVcDpJRs4WgA9eTKxJYitU", "proofs": [ "kjBpXtVbSuhEa7EdBbApNAP1YqZ5oMhRd1hbHsnqsh4QXQDqSYZy2jBQVPfbcUwkNqMnfqpagVPjBDaYD8Lu9ay" ], "script": "base64:AAIDAAAAAAAAAAkIARIDCgEIEgAAAAABAAAAABRyb290QWNjb3VudFB1YmxpY0tleQEAAAAg/vAzV0dUdrsrjEv+jGHwMOZenmxYuL7Qu1GZmdwslzUAAAACAAAAAWkBAAAAEXNldEFjY2VwdGVkUGxheWVyAAAAAQAAAA9wbGF5ZXJQdWJsaWNLZXkDCQEAAAACIT0AAAACCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkFAAAAFHJvb3RBY2NvdW50UHVibGljS2V5CQAAAgAAAAECAAAAD2Vycm9yIG9ubHkgcm9vdAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAPcGxheWVyUHVibGljS2V5AAAAAAAAAAABBQAAAANuaWwAAAABaQEAAAAMcGxheWVySW52b2tlAAAAAAQAAAAPcGxheWVyUHVibGljS2V5CAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCQAEGgAAAAIFAAAABHRoaXMJAAJYAAAAAQUAAAAPcGxheWVyUHVibGljS2V5CQAAAgAAAAEJAAEsAAAAAgIAAAAZWW91IGFyZSBub3QgYWxsb3dlZCBoZXJlIAkAAlgAAAABBQAAAA9wbGF5ZXJQdWJsaWNLZXkJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAPcGxheWVyUHVibGljS2V5AAAAAAAADbugBQAAAAR1bml0BQAAAANuaWwAAAAATc4vSA==", "chainId": 84, "height": 883193, "spentComplexity": 0 } View: original | compacted Prev: 72BacN9tJRXHNeYfVYhifrKcw85cKRac1yEshbhem43t Next: none Diff:
OldNewDifferences
1313 @Callable(i)
1414 func playerInvoke () = {
1515 let playerPublicKey = i.callerPublicKey
16- if (!(isDefined(getBoolean(addressFromPublicKey(rootAccountPublicKey), toBase58String(playerPublicKey)))))
16+ if (!(isDefined(getInteger(this, toBase58String(playerPublicKey)))))
1717 then throw(("You are not allowed here " + toBase58String(playerPublicKey)))
1818 else ScriptResult(WriteSet(nil), TransferSet([ScriptTransfer(addressFromPublicKey(playerPublicKey), 900000, unit)]))
1919 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let rootAccountPublicKey = base58'JAAzQjxgzdgjCEdwXpfgpoMVcDpJRs4WgA9eTKxJYitU'
55
66 @Callable(i)
77 func setAcceptedPlayer (playerPublicKey) = if ((i.callerPublicKey != rootAccountPublicKey))
88 then throw("error only root")
99 else WriteSet([DataEntry(playerPublicKey, 1)])
1010
1111
1212
1313 @Callable(i)
1414 func playerInvoke () = {
1515 let playerPublicKey = i.callerPublicKey
16- if (!(isDefined(getBoolean(addressFromPublicKey(rootAccountPublicKey), toBase58String(playerPublicKey)))))
16+ if (!(isDefined(getInteger(this, toBase58String(playerPublicKey)))))
1717 then throw(("You are not allowed here " + toBase58String(playerPublicKey)))
1818 else ScriptResult(WriteSet(nil), TransferSet([ScriptTransfer(addressFromPublicKey(playerPublicKey), 900000, unit)]))
1919 }
2020
2121

github/deemru/w8io/026f985 
39.76 ms