tx · HpSVtoYKJ1ehYRYBPPngcDFjLJWZdrRURV86weoJve4r

3NC919nbxwuSaHY8X6x8NmqD1zZdWSd7gaf:  -0.01000000 Waves

2022.11.07 03:25 [2305979] smart account 3NC919nbxwuSaHY8X6x8NmqD1zZdWSd7gaf > SELF 0.00000000 Waves

{ "type": 13, "id": "HpSVtoYKJ1ehYRYBPPngcDFjLJWZdrRURV86weoJve4r", "fee": 1000000, "feeAssetId": null, "timestamp": 1667780713636, "version": 2, "chainId": 84, "sender": "3NC919nbxwuSaHY8X6x8NmqD1zZdWSd7gaf", "senderPublicKey": "Fvzdy4Qppd2VzNFAj8ySdyEvhoiRFQfm9WyUtWbe96zY", "proofs": [ "3yMNwUNm3cxPt5GiuY9ExPGN12ejFeENj1az6oSsY2sCDGdoMLBPZdNj53zLpRCsd5rp43ycnEYUUz3R1XT84Uj9" ], "script": "base64:BgEEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBAF0BQckbWF0Y2gwBAxzZW5kZXJTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AAEAAAQLcHJveHlTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAAASCvaCaAtCOdYkewrv8YTLHmiQJ3FbqyC3HGSHZLdwZFXgABAAAJAAACCQBkAgUMc2VuZGVyU2lnbmVkBQtwcm94eVNpZ25lZAABCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V58N7u4g==", "height": 2305979, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 65mN5sfMcWWmYXBpiBR9iFJEXMJ9huHetBJ6bawMi3oM Next: CcWoVxRF8XTaASA1qYTLrvhxos7wEqGVc8WobTh6AME2 Diff:
OldNewDifferences
22 {-# CONTENT_TYPE EXPRESSION #-}
33 match tx {
44 case t: InvokeScriptTransaction =>
5- if ((size(tx.proofs) > 0))
6- then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
7- else if ((toString(addressFromRecipient(t.dApp)) == "3Mtz2T6oLFkK4F7QvSrhtpV7Z5gMbreoNmi"))
8- then true
9- else throw("only calling specified function on specified dapp allowed")
5+ let senderSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
6+ then 1
7+ else 0
8+ let proxySigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], base58'CoiTaZJS1AeWcG6fhJ8nX347Hxm2fiTGXoeQ1XCeZWRj'))
9+ then 1
10+ else 0
11+ ((senderSigned + proxySigned) == 1)
1012 case _ =>
1113 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
1214 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 match tx {
44 case t: InvokeScriptTransaction =>
5- if ((size(tx.proofs) > 0))
6- then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
7- else if ((toString(addressFromRecipient(t.dApp)) == "3Mtz2T6oLFkK4F7QvSrhtpV7Z5gMbreoNmi"))
8- then true
9- else throw("only calling specified function on specified dapp allowed")
5+ let senderSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
6+ then 1
7+ else 0
8+ let proxySigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], base58'CoiTaZJS1AeWcG6fhJ8nX347Hxm2fiTGXoeQ1XCeZWRj'))
9+ then 1
10+ else 0
11+ ((senderSigned + proxySigned) == 1)
1012 case _ =>
1113 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
1214 }

github/deemru/w8io/169f3d6 
45.81 ms