tx · 4U6JbE9NCSUJt8NamCadTDm98V1tMccbMWDNZ33aGwkb
3MsKhh2tBJqUdyNakXBjdq3vL7uR5Yrz6Dc: -0.01400000 Waves
2021.08.30 02:56 [1680314] smart account 3MsKhh2tBJqUdyNakXBjdq3vL7uR5Yrz6Dc > SELF 0.00000000 Waves
{
"type": 13,
"id": "4U6JbE9NCSUJt8NamCadTDm98V1tMccbMWDNZ33aGwkb",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1630281435209,
"version": 2,
"chainId": 84,
"sender": "3MsKhh2tBJqUdyNakXBjdq3vL7uR5Yrz6Dc",
"senderPublicKey": "793KuCHBzJorpP1hPfRJAsYdtU4pr9uYLTr8mChrzg5k",
"proofs": [
"cmdk78pcQYZcPRxRJgXHZDWx8rAodq1WwoZCJu7njhLat9Yvrg5bJ1nsWDU7AESGCHAe78iNwmsbSrorL7W41Ui"
],
"script": "base64:AAIFAAAAAAAAAHMIAhIECgIICBocCgJhMRIWY29udHJvbENvbnRyYWN0QWRkcmVzcxoHCgJhMhIBaRoKCgJhMxIEYWRkchoPCgJhNBIJaGFzaGVkVXJpGg0KAmE1EgckbWF0Y2gwGggKAmE2EgJ0eBoMCgJhNxIGdmVyaWZ5AAAAAQAAAAACYTEBAAAAGgFUpPriMtr4Il6LN8Wh1b30UXiIzTGe+k+yAAAAAQAAAAJhMgEAAAAGYWRkUmVmAAAAAgAAAAJhMwAAAAJhNAMJAQAAAAIhPQAAAAIICAUAAAACYTIAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAJhMQkAAAIAAAABAgAAAEVJdCdzIG9yYWNsZSBtZXRob2QgYW5kIGNhbiBiZSBjYWxsZWQgb25seSBieSBjb250cm9sIGNvbnRyYWN0IGFkZHJlc3MEAAAAAmE1CQAEHQAAAAIFAAAABHRoaXMFAAAAAmE0AwkAAAEAAAACBQAAAAJhNQIAAAAEVW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAJhNAkAASwAAAACCQABLAAAAAIFAAAAAmEzAgAAAAE6CQACWAAAAAEIBQAAAAJhMgAAAA10cmFuc2FjdGlvbklkBQAAAANuaWwJAAACAAAAAQIAAAAqUmVmIGZvciBzcGVjaWZpZWQgaGFzaGVkVXJpIGFscmVhZHkgZXhpc3RzAAAAAQAAAAJhNgEAAAACYTcAAAAACQAB9AAAAAMIBQAAAAJhNgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmE2AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAmE2AAAAD3NlbmRlclB1YmxpY0tleYPEEKc=",
"height": 1680314,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HXxJ3i5c3Ff6bi9wC3isje4ie3Kaj3HHgcYZ8jb1caYY
Next: none
Diff:
Old | New | | Differences |
---|
8 | 8 | | then throw("It's oracle method and can be called only by control contract address") |
---|
9 | 9 | | else match getString(this, hashedUri) { |
---|
10 | 10 | | case _: Unit => |
---|
11 | | - | [StringEntry(hashedUri, addr)] |
---|
| 11 | + | [StringEntry(hashedUri, ((addr + ":") + toBase58String(i.transactionId)))] |
---|
12 | 12 | | case _ => |
---|
13 | 13 | | throw("Ref for specified hashedUri already exists") |
---|
14 | 14 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let controlContractAddress = base58'3N4xR95UqYH94X8cU4BGPCpPHB6wgMS8jSy' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func addRef (addr,hashedUri) = if ((i.caller.bytes != controlContractAddress)) |
---|
8 | 8 | | then throw("It's oracle method and can be called only by control contract address") |
---|
9 | 9 | | else match getString(this, hashedUri) { |
---|
10 | 10 | | case _: Unit => |
---|
11 | | - | [StringEntry(hashedUri, addr)] |
---|
| 11 | + | [StringEntry(hashedUri, ((addr + ":") + toBase58String(i.transactionId)))] |
---|
12 | 12 | | case _ => |
---|
13 | 13 | | throw("Ref for specified hashedUri already exists") |
---|
14 | 14 | | } |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Verifier(tx) |
---|
18 | 18 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
19 | 19 | | |
---|