tx · G9s1UWtKRvZpv2H2KcB16kJbkeRZ2VQvMFUkxUU5txsp

3N1kVqVL4USL4Uoy2dEN6Rqk2pXhQgfsqUN:  -0.01400000 Waves

2019.09.15 16:33 [677406] smart account 3N1kVqVL4USL4Uoy2dEN6Rqk2pXhQgfsqUN > SELF 0.00000000 Waves

{ "type": 13, "id": "G9s1UWtKRvZpv2H2KcB16kJbkeRZ2VQvMFUkxUU5txsp", "fee": 1400000, "feeAssetId": null, "timestamp": 1568554417179, "version": 1, "sender": "3N1kVqVL4USL4Uoy2dEN6Rqk2pXhQgfsqUN", "senderPublicKey": "6qNq3Wug6srPUuAQrggzvR3nvagzN3AzsR4fABCH1qMm", "proofs": [ "3VG7GKXCQehQaaTdxjnqoF6v5b1gVJ1bR4uJixb58sKscZPjedA8XTHNyZJu27VmVujezUhd3SDh2ZQf5uKfWrse" ], "script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAgAAAAFpAQAAAAZjcmVhdGUAAAABAAAAAnBrBAAAAAdwYXltZW50CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIIBQAAAAFpAAAAB3BheW1lbnQCAAAAE1doZXJlIGlzIGEgcGF5bWVudD8DCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAB3BheW1lbnQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACRZb3UgY2FuIHVzZSBvbmx5IFdBVkVTIGF0IHRoZSBtb21lbnQEAAAACmNvZGVFeGlzdHMEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAAJwawIAAAAFX3VzZWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWIFAAAAByRtYXRjaDAJAQAAAAEhAAAAAQUAAAABYgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAcJAQAAAAV0aHJvdwAAAAADBQAAAApjb2RlRXhpc3RzCQAAAgAAAAECAAAAD1RoZSBjb2RlIGV4aXN0c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hbGxlcgkAAGQAAAACBQAAAAZhbW91bnQIBQAAAAFpAAAAA2ZlZQUAAAAEdW5pdAUAAAADbmlsAAAAAD0kVE0=", "chainId": 84, "height": 677406, "spentComplexity": 0 } View: original | compacted Prev: 46eWTbMTm2nAfwZk3AAKb3wbtG6gJV6v9DhhDyKmGSEF Next: BGB7PLb3ER7WNHsrj4QHnZrEXMDBEhRgiZ24uW5HXizg Diff:
OldNewDifferences
3838 else (a.feeAssetId != unit))
3939 then throw("Fee must be less than or equal to 0.005 WAVES")
4040 else {
41- let i = sigVerify(a.caller.bytes, fromBase58String(g), fromBase58String(b))
41+ let i = sigVerify(a.callerPublicKey, fromBase58String(g), fromBase58String(b))
4242 let j = getIntegerValue(this, (b + "_amount"))
4343 ScriptResult(WriteSet([DataEntry((b + "_used"), true)]), TransferSet([ScriptTransfer(a.caller, (j + a.fee), unit)]))
4444 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func create (b) = {
88 let c = valueOrErrorMessage(a.payment, "Where is a payment?")
99 if (isDefined(c.assetId))
1010 then throw("You can use only WAVES at the moment")
1111 else {
1212 let d = {
1313 let e = getBoolean(this, (b + "_used"))
1414 if ($isInstanceOf(e, "Boolean"))
1515 then {
1616 let f = e
1717 !(f)
1818 }
1919 else if ($isInstanceOf(e, "Unit"))
2020 then false
2121 else throw()
2222 }
2323 if (d)
2424 then throw("The code exists")
2525 else WriteSet([DataEntry((b + "_amount"), c.amount), DataEntry((b + "_used"), false)])
2626 }
2727 }
2828
2929
3030
3131 @Callable(a)
3232 func withdraw (b,g) = {
3333 let h = valueOrErrorMessage(getBoolean(this, (b + "_used")), "The code doesn't exist")
3434 if (h)
3535 then throw("The code has already been used")
3636 else if (if ((a.fee > 500000))
3737 then true
3838 else (a.feeAssetId != unit))
3939 then throw("Fee must be less than or equal to 0.005 WAVES")
4040 else {
41- let i = sigVerify(a.caller.bytes, fromBase58String(g), fromBase58String(b))
41+ let i = sigVerify(a.callerPublicKey, fromBase58String(g), fromBase58String(b))
4242 let j = getIntegerValue(this, (b + "_amount"))
4343 ScriptResult(WriteSet([DataEntry((b + "_used"), true)]), TransferSet([ScriptTransfer(a.caller, (j + a.fee), unit)]))
4444 }
4545 }
4646
4747

github/deemru/w8io/026f985 
32.63 ms