tx · HJwDi9yhfHg2doKUu1CTsUWSqg9RPoqAgaHGFVqNxGdK

3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5:  -0.01000000 Waves

2023.09.15 10:02 [2756188] smart account 3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5 > SELF 0.00000000 Waves

{ "type": 13, "id": "HJwDi9yhfHg2doKUu1CTsUWSqg9RPoqAgaHGFVqNxGdK", "fee": 1000000, "feeAssetId": null, "timestamp": 1694761336519, "version": 2, "chainId": 84, "sender": "3MsVsEgTUxTm6ETYkHGaqMhMhiY2Nb3yDN5", "senderPublicKey": "2LmNyaN5YAXdg9C5vsXcTLU66hsW2KUNPsN7KcHBYhUo", "proofs": [ "43LVc64fxoVn2VZxDAZFnEjv4RsTmKJ1Qfz5pNnm7qWMJazCBChyf1ywyu2G8r2gBKLqy6GQ2ttmAGvfdmKKN2rW" ], "script": "base64:BgIHCAISAwoBCAEBDGdldGFzc2V0aW5mbwEHYXNzZXRJZAQHJG1hdGNoMAUHYXNzZXRJZAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXQFByRtYXRjaDAJAOwHAQkA2QQBBQdhc3NldElkCQACAQIQQ2FuJ3QgZmluZCBhc3NldAEBaQEVUmVnaXN0ZXJQYWlyRm9yVm90aW5nAQdhc3NldElkBA1yZWFkYXNzZXRpbmZvCQEMZ2V0YXNzZXRpbmZvAQUHYXNzZXRJZAQEcG10MQkBBXZhbHVlAQkAkQMCCAUBaQhwYXltZW50cwAABApjdXJyZW50S2V5CQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMECWZldGNocGFpcgkAnQgCBQR0aGlzCQCsAgICCFBhaXJfVVZfBQdhc3NldElkBA1hc3NldGluZm9wbXQyCQDZBAEFB2Fzc2V0SWQDCQAAAgUJZmV0Y2hwYWlyBQdhc3NldElkCQACAQIiUGFpciBBbHJlYWR5IEV4aXN0IGluIFZvdGluZyBMaXN0LgkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgICCFBhaXJfVVZfBQdhc3NldElkBQdhc3NldElkBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5fT+Rkw==", "height": 2756188, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5avNfTaSLz4hoH2b5i5VwUahtswYMPWve5kvtthMeu1a Next: EXpwAcD8Lpzd36xHAmgjbiYmu7xX8S49WyYcpuwH46YS Diff:
OldNewDifferences
1010
1111
1212 @Callable(i)
13-func RegisterPairForVoting (EnterAssetID,assetId) = {
13+func RegisterPairForVoting (assetId) = {
1414 let readassetinfo = getassetinfo(assetId)
1515 let pmt1 = value(i.payments[0])
1616 let currentKey = toBase58String(i.caller.bytes)
17- let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID))
18- let assetinfopmt2 = fromBase58String(EnterAssetID)
19- if ((fetchpair == EnterAssetID))
17+ let fetchpair = getString(this, ("Pair_UV_" + assetId))
18+ let assetinfopmt2 = fromBase58String(assetId)
19+ if ((fetchpair == assetId))
2020 then throw("Pair Already Exist in Voting List.")
21- else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID)]
21+ else [StringEntry(("Pair_UV_" + assetId), assetId)]
2222 }
2323
2424
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getassetinfo (assetId) = match assetId {
55 case t: String =>
66 assetInfo(fromBase58String(assetId))
77 case _ =>
88 throw("Can't find asset")
99 }
1010
1111
1212 @Callable(i)
13-func RegisterPairForVoting (EnterAssetID,assetId) = {
13+func RegisterPairForVoting (assetId) = {
1414 let readassetinfo = getassetinfo(assetId)
1515 let pmt1 = value(i.payments[0])
1616 let currentKey = toBase58String(i.caller.bytes)
17- let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID))
18- let assetinfopmt2 = fromBase58String(EnterAssetID)
19- if ((fetchpair == EnterAssetID))
17+ let fetchpair = getString(this, ("Pair_UV_" + assetId))
18+ let assetinfopmt2 = fromBase58String(assetId)
19+ if ((fetchpair == assetId))
2020 then throw("Pair Already Exist in Voting List.")
21- else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID)]
21+ else [StringEntry(("Pair_UV_" + assetId), assetId)]
2222 }
2323
2424
2525 @Verifier(tx)
2626 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2727

github/deemru/w8io/169f3d6 
37.92 ms