tx · DSbNkHRiLA3BEZH1mgsNCpzAchp6tpGLd57B1TcvLbVS

3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7:  -0.01400000 Waves

2020.02.03 17:56 [883123] smart account 3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7 > SELF 0.00000000 Waves

{ "type": 13, "id": "DSbNkHRiLA3BEZH1mgsNCpzAchp6tpGLd57B1TcvLbVS", "fee": 1400000, "feeAssetId": null, "timestamp": 1580741764893, "version": 1, "sender": "3NCMVbH9EWZogGDLtS8sf1N4ShcoDUqxrn7", "senderPublicKey": "JAAzQjxgzdgjCEdwXpfgpoMVcDpJRs4WgA9eTKxJYitU", "proofs": [ "3t8SpiWxMN8Bh2kPVJQcaE37Hpv82T7NpFpbboyszmFSHaABXWPRp8uhppBC2WYjvEohwkDNhh4KmZ23tqbXhDsY" ], "script": "base64:AAIDAAAAAAAAAAkIARIDCgECEgAAAAABAAAAABRyb290QWNjb3VudFB1YmxpY0tleQEAAAAAAAAAAgAAAAFpAQAAABFzZXRBY2NlcHRlZFBsYXllcgAAAAEAAAAPcGxheWVyUHVibGljS2V5AwkBAAAAAiE9AAAAAggFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAABRyb290QWNjb3VudFB1YmxpY0tleQkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAABBlcnJvciBvbmx5IHJvb3QgCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQIAAAALLCByb290IGlzOiAJAAJYAAAAAQUAAAAUcm9vdEFjY291bnRQdWJsaWNLZXkJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAJYAAAAAQUAAAAPcGxheWVyUHVibGljS2V5AAAAAAAAAAABBQAAAANuaWwAAAABaQEAAAAMcGxheWVySW52b2tlAAAAAAQAAAAPcGxheWVyUHVibGljS2V5CAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCQAEGwAAAAIFAAAABHRoaXMJAAJYAAAAAQUAAAAPcGxheWVyUHVibGljS2V5CQAAAgAAAAEJAAEsAAAAAgIAAAAZWW91IGFyZSBub3QgYWxsb3dlZCBoZXJlIAkAAlgAAAABBQAAAA9wbGF5ZXJQdWJsaWNLZXkJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAPcGxheWVyUHVibGljS2V5AAAAAAAADbugBQAAAAR1bml0BQAAAANuaWwAAAAAUHl7TQ==", "chainId": 84, "height": 883123, "spentComplexity": 0 } View: original | compacted Prev: 62diHg2dsFP3RDttKz8oQ3C7USPVoDqKbFEp5qW9fprQ Next: GE1DnjiCcXApsqeoyU3zyrwso9Fu8e2eUkPrSDUTccA5 Diff:
OldNewDifferences
55
66 @Callable(i)
77 func setAcceptedPlayer (playerPublicKey) = if ((i.callerPublicKey != rootAccountPublicKey))
8- then throw(("error only root " + toBase58String(i.callerPublicKey)))
8+ then throw(((("error only root " + toBase58String(i.callerPublicKey)) + ", root is: ") + toBase58String(rootAccountPublicKey)))
99 else WriteSet([DataEntry(toBase58String(playerPublicKey), 1)])
1010
1111
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let rootAccountPublicKey = base58''
55
66 @Callable(i)
77 func setAcceptedPlayer (playerPublicKey) = if ((i.callerPublicKey != rootAccountPublicKey))
8- then throw(("error only root " + toBase58String(i.callerPublicKey)))
8+ then throw(((("error only root " + toBase58String(i.callerPublicKey)) + ", root is: ") + toBase58String(rootAccountPublicKey)))
99 else WriteSet([DataEntry(toBase58String(playerPublicKey), 1)])
1010
1111
1212
1313 @Callable(i)
1414 func playerInvoke () = {
1515 let playerPublicKey = i.callerPublicKey
1616 if (!(isDefined(getBoolean(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/169f3d6 
26.06 ms