tx · 14mZMMtP6knjarfWVxSygk3Pb7U1kuhq9VVFQxMx1ibh

3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh:  -0.01000000 Waves

2023.04.19 10:35 [2541156] smart account 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh > SELF 0.00000000 Waves

{ "type": 13, "id": "14mZMMtP6knjarfWVxSygk3Pb7U1kuhq9VVFQxMx1ibh", "fee": 1000000, "feeAssetId": null, "timestamp": 1681889754050, "version": 2, "chainId": 84, "sender": "3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh", "senderPublicKey": "EU9obW1yVhR8qug3EmXPeew3DMagvJFQzY5Ku8bmcsU7", "proofs": [ "3jtaCMuzeA5sHavBmFuqwWtPUC7rj1tuKNYKpa6yHXbY6ARkN3i453wiY4Zp1rAZHBjxRSwQ6XUm7UrUUq2zWfir" ], "script": "base64:BgIXCAISABIDCgEIEgASABIDCgEIEgMKAQgfAANTRVACAl9fABBjb250cmFjdEZpbGVuYW1lAhJtYW5hZ2VyX3ZhdWx0LnJpZGUBCHRocm93RXJyAQFzCQACAQkArAICCQCsAgIFEGNvbnRyYWN0RmlsZW5hbWUCAjogBQFzARlrZXlBY3RpdmVNYW5hZ2VyUHVibGljS2V5AAkAuQkCCQDMCAICAiVzCQDMCAICEG1hbmFnZXJQdWJsaWNLZXkFA25pbAUDU0VQARprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAJALkJAgkAzAgCAgIlcwkAzAgCAhdwZW5kaW5nTWFuYWdlclB1YmxpY0tleQUDbmlsBQNTRVABGmtleVNldE5ld01hbmFnZXJWb3RlUHJlZml4ARBtYW5hZ2VyUHVibGljS2V5CQC5CQIJAMwIAgIGJXMlcyVzCQDMCAICCnNldE1hbmFnZXIJAMwIAgUQbWFuYWdlclB1YmxpY0tleQUDbmlsBQNTRVABFGtleVNldE5ld01hbmFnZXJWb3RlAhBtYW5hZ2VyUHVibGljS2V5BWFkbWluCQC5CQIJAMwIAgk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QC5CQIFDG5ld0FkbWluTGlzdAUDU0VQBQNuaWwJAQx2b3RlSU5URVJOQUwFBRNjYWxsZXJBZGRyZXNzU3RyaW5nBRBhZG1pbkN1cnJlbnRWb3RlBQlrZXlQcmVmaXgFCG1pblZvdGVzBQZyZXN1bHQJAQh0aHJvd0VycgEJAKwCAgUPcmVtb3ZlQ2FuZGlkYXRlAhggbm90IGZvdW5kIGluIEFkbWluIExpc3QAnAJZnQ==", "height": 2541156, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7EMmiyuuRuQAM5kJSwkW3wXL7hg1C9BZV52wmnsQ6vrm Next: EV5YW1beov4z2RbLv43sHGzkXaLY4NP94ukUEubTz7Np Diff:
OldNewDifferences
5050 func u (s,j) = valueOrElse(getInteger(t(s, j)), 0)
5151
5252
53-func v () = makeString(["%s", "adminAddressList"], a)
53+func v (w) = makeString(["%s%s%s", "removeAdmin", w], a)
5454
5555
56-func w () = {
57- let x = getString(f())
58- if ($isInstanceOf(x, "String"))
56+func x (w,j) = makeString([v(w), j], a)
57+
58+
59+func y (w,j) = valueOrElse(getInteger(x(w, j)), 0)
60+
61+
62+func z () = makeString(["%s", "adminAddressList"], a)
63+
64+
65+func A () = {
66+ let B = getString(f())
67+ if ($isInstanceOf(B, "String"))
5968 then {
60- let d = x
69+ let d = B
6170 fromBase58String(d)
6271 }
63- else if ($isInstanceOf(x, "Unit"))
72+ else if ($isInstanceOf(B, "Unit"))
6473 then unit
6574 else throw("Match error")
6675 }
6776
6877
69-func y () = split(valueOrElse(getString(this, v()), ""), a)
78+func C () = split(valueOrElse(getString(this, z()), ""), a)
7079
7180
72-func z (A) = {
73- let x = indexOf(y(), A)
74- if ($isInstanceOf(x, "Int"))
81+func D (E) = {
82+ let B = indexOf(C(), E)
83+ if ($isInstanceOf(B, "Int"))
7584 then {
76- let B = x
85+ let F = B
7786 true
7887 }
7988 else false
8089 }
8190
8291
83-func C (D,E) = {
84- let F = D
85- let G = F._1
86- let H = F._2
87- $Tuple2((G :+ makeString([H, E], a)), H)
92+func G (H,I) = {
93+ let J = H
94+ let K = J._1
95+ let L = J._2
96+ $Tuple2((K :+ makeString([L, I], a)), L)
8897 }
8998
9099
91-func I (J) = {
92- let K = v()
93- let L = y()
94- let M = size(L)
95- let N = $Tuple2(nil, J)
96- func O (P,Q) = if ((Q >= M))
97- then P
98- else C(P, L[Q])
100+func M (N) = {
101+ let O = z()
102+ let P = C()
103+ let Q = size(P)
104+ let R = $Tuple2(nil, N)
105+ func S (T,U) = if ((U >= Q))
106+ then T
107+ else G(T, P[U])
99108
100- func R (P,Q) = if ((Q >= M))
101- then P
109+ func V (T,U) = if ((U >= Q))
110+ then T
102111 else throw("List size exceeds 10")
103112
104- R(O(O(O(O(O(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
113+ V(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
105114 }
106115
107116
108-func S (G,T) = (G + valueOrElse(getInteger(T), 0))
117+func W (K,X) = (K + valueOrElse(getInteger(X), 0))
109118
110119
111-func U (H) = {
112- let V = I(H)._1
113- let L = V
114- let M = size(L)
115- let N = 0
116- func O (P,Q) = if ((Q >= M))
117- then P
118- else S(P, L[Q])
120+func Y (L) = {
121+ let Z = M(L)._1
122+ let P = Z
123+ let Q = size(P)
124+ let R = 0
125+ func S (T,U) = if ((U >= Q))
126+ then T
127+ else W(T, P[U])
119128
120- func R (P,Q) = if ((Q >= M))
121- then P
129+ func V (T,U) = if ((U >= Q))
130+ then T
122131 else throw("List size exceeds 10")
123132
124- R(O(O(O(O(O(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
133+ V(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
125134 }
126135
127136
128-func W (G,X) = (G :+ DeleteEntry(X))
137+func aa (K,ab) = (K :+ DeleteEntry(ab))
129138
130139
131-func Y (H) = {
132- let V = I(H)._1
133- let L = V
134- let M = size(L)
135- let N = nil
136- func O (P,Q) = if ((Q >= M))
137- then P
138- else W(P, L[Q])
140+func ac (L) = {
141+ let Z = M(L)._1
142+ let P = Z
143+ let Q = size(P)
144+ let R = nil
145+ func S (T,U) = if ((U >= Q))
146+ then T
147+ else aa(T, P[U])
139148
140- func R (P,Q) = if ((Q >= M))
141- then P
149+ func V (T,U) = if ((U >= Q))
150+ then T
142151 else throw("List size exceeds 10")
143152
144- R(O(O(O(O(O(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
153+ V(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
145154 }
146155
147156
148-func Z (aa,ab,J,ac,ad) = {
149- let T = makeString([J, aa], a)
150- if (z(aa))
151- then if ((ab == 1))
152- then c((T + " you already voted"))
157+func ad (ae,af,N,ag,ah) = {
158+ let X = makeString([N, ae], a)
159+ if (D(ae))
160+ then if ((af == 1))
161+ then c((X + " you already voted"))
153162 else {
154- let V = U(J)
155- if (((V + 1) >= ac))
163+ let Z = Y(N)
164+ if (((Z + 1) >= ag))
156165 then {
157- let ae = Y(J)
158- (ae ++ ad)
166+ let ai = ac(N)
167+ (ai ++ ah)
159168 }
160- else [IntegerEntry(T, 1)]
169+ else [IntegerEntry(X, 1)]
161170 }
162- else c((("Address: " + aa) + " not in Admin list"))
171+ else c((("Address: " + ae) + " not in Admin list"))
163172 }
164173
165174
166-@Callable(af)
175+@Callable(aj)
167176 func confirmManager () = {
168- let ag = w()
169- let ah = if (isDefined(ag))
177+ let ak = A()
178+ let al = if (isDefined(ak))
170179 then true
171180 else c("no pending manager")
172- if ((ah == ah))
181+ if ((al == al))
173182 then {
174- let ai = if ((af.callerPublicKey == value(ag)))
183+ let am = if ((aj.callerPublicKey == value(ak)))
175184 then true
176185 else c("you are not pending manager")
177- if ((ai == ai))
178- then [StringEntry(e(), toBase58String(value(ag)))]
186+ if ((am == am))
187+ then [StringEntry(e(), toBase58String(value(ak)))]
179188 else throw("Strict value is not equal to itself.")
180189 }
181190 else throw("Strict value is not equal to itself.")
183192
184193
185194
186-@Callable(af)
187-func voteForNewManger (aj) = {
188- let aa = toBase58String(af.caller.bytes)
189- let J = g(aj)
190- let ab = k(aj, aa)
191- let ac = 2
192- let G = [StringEntry(f(), aj)]
193- Z(aa, ab, J, ac, G)
195+@Callable(aj)
196+func voteForNewManger (an) = {
197+ let ae = toBase58String(aj.caller.bytes)
198+ let N = g(an)
199+ let af = k(an, ae)
200+ let ag = 2
201+ let K = [StringEntry(f(), an)]
202+ ad(ae, af, N, ag, K)
194203 }
195204
196205
197206
198-@Callable(af)
207+@Callable(aj)
199208 func deactivateManager () = {
200- let aa = toBase58String(af.caller.bytes)
201- let J = l()
202- let ab = n(aa)
203- let ac = 1
204- let G = [DeleteEntry(e())]
205- Z(aa, ab, J, ac, G)
209+ let ae = toBase58String(aj.caller.bytes)
210+ let N = l()
211+ let af = n(ae)
212+ let ag = 1
213+ let K = [DeleteEntry(e())]
214+ ad(ae, af, N, ag, K)
206215 }
207216
208217
209218
210-@Callable(af)
219+@Callable(aj)
211220 func activateManager () = {
212- let aa = toBase58String(af.caller.bytes)
213- let J = o()
214- let ab = q(aa)
215- let ac = 2
216- let ak = getStringValue(f())
217- let G = [StringEntry(e(), ak)]
218- Z(aa, ab, J, ac, G)
221+ let ae = toBase58String(aj.caller.bytes)
222+ let N = o()
223+ let af = q(ae)
224+ let ag = 2
225+ let ao = getStringValue(f())
226+ let K = [StringEntry(e(), ao)]
227+ ad(ae, af, N, ag, K)
219228 }
220229
221230
222231
223-@Callable(af)
224-func addNewAdmin (al) = {
225- let aa = toBase58String(af.caller.bytes)
226- let J = r(al)
227- let ab = u(al, aa)
228- let ac = 2
229- let am = y()
230- let x = indexOf(am, al)
231- if ($isInstanceOf(x, "Int"))
232+@Callable(aj)
233+func addNewAdmin (ap) = {
234+ let ae = toBase58String(aj.caller.bytes)
235+ let N = r(ap)
236+ let af = u(ap, ae)
237+ let ag = 2
238+ let aq = C()
239+ let B = indexOf(aq, ap)
240+ if ($isInstanceOf(B, "Int"))
232241 then {
233- let D = x
234- c((al + " already in Admin List"))
242+ let H = B
243+ c((ap + " already in Admin List"))
235244 }
236245 else {
237- let an = (am :+ al)
238- let G = [StringEntry(v(), makeString(an, a))]
239- Z(aa, ab, J, ac, G)
246+ let ar = (aq :+ ap)
247+ let K = [StringEntry(z(), makeString(ar, a))]
248+ ad(ae, af, N, ag, K)
240249 }
250+ }
251+
252+
253+
254+@Callable(aj)
255+func removeAdmin (w) = {
256+ let ae = toBase58String(aj.caller.bytes)
257+ let N = v(w)
258+ let af = y(w, ae)
259+ let ag = 2
260+ let aq = C()
261+ let B = indexOf(aq, w)
262+ if ($isInstanceOf(B, "Int"))
263+ then {
264+ let as = B
265+ let ar = removeByIndex(aq, as)
266+ let K = [StringEntry(z(), makeString(ar, a))]
267+ ad(ae, af, N, ag, K)
268+ }
269+ else c((w + " not found in Admin List"))
241270 }
242271
243272
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = "manager_vault.ride"
77
88 func c (d) = throw(((b + ": ") + d))
99
1010
1111 func e () = makeString(["%s", "managerPublicKey"], a)
1212
1313
1414 func f () = makeString(["%s", "pendingManagerPublicKey"], a)
1515
1616
1717 func g (h) = makeString(["%s%s%s", "setManager", h], a)
1818
1919
2020 func i (h,j) = makeString([g(h), j], a)
2121
2222
2323 func k (h,j) = valueOrElse(getInteger(i(h, j)), 0)
2424
2525
2626 func l () = makeString(["%s%s", "deactivateManager"], a)
2727
2828
2929 func m (j) = makeString([l(), j], a)
3030
3131
3232 func n (j) = valueOrElse(getInteger(m(j)), 0)
3333
3434
3535 func o () = makeString(["%s%s", "activateManager"], a)
3636
3737
3838 func p (j) = makeString([o(), j], a)
3939
4040
4141 func q (j) = valueOrElse(getInteger(p(j)), 0)
4242
4343
4444 func r (s) = makeString(["%s%s%s", "addAdmin", s], a)
4545
4646
4747 func t (s,j) = makeString([r(s), j], a)
4848
4949
5050 func u (s,j) = valueOrElse(getInteger(t(s, j)), 0)
5151
5252
53-func v () = makeString(["%s", "adminAddressList"], a)
53+func v (w) = makeString(["%s%s%s", "removeAdmin", w], a)
5454
5555
56-func w () = {
57- let x = getString(f())
58- if ($isInstanceOf(x, "String"))
56+func x (w,j) = makeString([v(w), j], a)
57+
58+
59+func y (w,j) = valueOrElse(getInteger(x(w, j)), 0)
60+
61+
62+func z () = makeString(["%s", "adminAddressList"], a)
63+
64+
65+func A () = {
66+ let B = getString(f())
67+ if ($isInstanceOf(B, "String"))
5968 then {
60- let d = x
69+ let d = B
6170 fromBase58String(d)
6271 }
63- else if ($isInstanceOf(x, "Unit"))
72+ else if ($isInstanceOf(B, "Unit"))
6473 then unit
6574 else throw("Match error")
6675 }
6776
6877
69-func y () = split(valueOrElse(getString(this, v()), ""), a)
78+func C () = split(valueOrElse(getString(this, z()), ""), a)
7079
7180
72-func z (A) = {
73- let x = indexOf(y(), A)
74- if ($isInstanceOf(x, "Int"))
81+func D (E) = {
82+ let B = indexOf(C(), E)
83+ if ($isInstanceOf(B, "Int"))
7584 then {
76- let B = x
85+ let F = B
7786 true
7887 }
7988 else false
8089 }
8190
8291
83-func C (D,E) = {
84- let F = D
85- let G = F._1
86- let H = F._2
87- $Tuple2((G :+ makeString([H, E], a)), H)
92+func G (H,I) = {
93+ let J = H
94+ let K = J._1
95+ let L = J._2
96+ $Tuple2((K :+ makeString([L, I], a)), L)
8897 }
8998
9099
91-func I (J) = {
92- let K = v()
93- let L = y()
94- let M = size(L)
95- let N = $Tuple2(nil, J)
96- func O (P,Q) = if ((Q >= M))
97- then P
98- else C(P, L[Q])
100+func M (N) = {
101+ let O = z()
102+ let P = C()
103+ let Q = size(P)
104+ let R = $Tuple2(nil, N)
105+ func S (T,U) = if ((U >= Q))
106+ then T
107+ else G(T, P[U])
99108
100- func R (P,Q) = if ((Q >= M))
101- then P
109+ func V (T,U) = if ((U >= Q))
110+ then T
102111 else throw("List size exceeds 10")
103112
104- R(O(O(O(O(O(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
113+ V(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
105114 }
106115
107116
108-func S (G,T) = (G + valueOrElse(getInteger(T), 0))
117+func W (K,X) = (K + valueOrElse(getInteger(X), 0))
109118
110119
111-func U (H) = {
112- let V = I(H)._1
113- let L = V
114- let M = size(L)
115- let N = 0
116- func O (P,Q) = if ((Q >= M))
117- then P
118- else S(P, L[Q])
120+func Y (L) = {
121+ let Z = M(L)._1
122+ let P = Z
123+ let Q = size(P)
124+ let R = 0
125+ func S (T,U) = if ((U >= Q))
126+ then T
127+ else W(T, P[U])
119128
120- func R (P,Q) = if ((Q >= M))
121- then P
129+ func V (T,U) = if ((U >= Q))
130+ then T
122131 else throw("List size exceeds 10")
123132
124- R(O(O(O(O(O(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
133+ V(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
125134 }
126135
127136
128-func W (G,X) = (G :+ DeleteEntry(X))
137+func aa (K,ab) = (K :+ DeleteEntry(ab))
129138
130139
131-func Y (H) = {
132- let V = I(H)._1
133- let L = V
134- let M = size(L)
135- let N = nil
136- func O (P,Q) = if ((Q >= M))
137- then P
138- else W(P, L[Q])
140+func ac (L) = {
141+ let Z = M(L)._1
142+ let P = Z
143+ let Q = size(P)
144+ let R = nil
145+ func S (T,U) = if ((U >= Q))
146+ then T
147+ else aa(T, P[U])
139148
140- func R (P,Q) = if ((Q >= M))
141- then P
149+ func V (T,U) = if ((U >= Q))
150+ then T
142151 else throw("List size exceeds 10")
143152
144- R(O(O(O(O(O(O(O(O(O(O(N, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
153+ V(S(S(S(S(S(S(S(S(S(S(R, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
145154 }
146155
147156
148-func Z (aa,ab,J,ac,ad) = {
149- let T = makeString([J, aa], a)
150- if (z(aa))
151- then if ((ab == 1))
152- then c((T + " you already voted"))
157+func ad (ae,af,N,ag,ah) = {
158+ let X = makeString([N, ae], a)
159+ if (D(ae))
160+ then if ((af == 1))
161+ then c((X + " you already voted"))
153162 else {
154- let V = U(J)
155- if (((V + 1) >= ac))
163+ let Z = Y(N)
164+ if (((Z + 1) >= ag))
156165 then {
157- let ae = Y(J)
158- (ae ++ ad)
166+ let ai = ac(N)
167+ (ai ++ ah)
159168 }
160- else [IntegerEntry(T, 1)]
169+ else [IntegerEntry(X, 1)]
161170 }
162- else c((("Address: " + aa) + " not in Admin list"))
171+ else c((("Address: " + ae) + " not in Admin list"))
163172 }
164173
165174
166-@Callable(af)
175+@Callable(aj)
167176 func confirmManager () = {
168- let ag = w()
169- let ah = if (isDefined(ag))
177+ let ak = A()
178+ let al = if (isDefined(ak))
170179 then true
171180 else c("no pending manager")
172- if ((ah == ah))
181+ if ((al == al))
173182 then {
174- let ai = if ((af.callerPublicKey == value(ag)))
183+ let am = if ((aj.callerPublicKey == value(ak)))
175184 then true
176185 else c("you are not pending manager")
177- if ((ai == ai))
178- then [StringEntry(e(), toBase58String(value(ag)))]
186+ if ((am == am))
187+ then [StringEntry(e(), toBase58String(value(ak)))]
179188 else throw("Strict value is not equal to itself.")
180189 }
181190 else throw("Strict value is not equal to itself.")
182191 }
183192
184193
185194
186-@Callable(af)
187-func voteForNewManger (aj) = {
188- let aa = toBase58String(af.caller.bytes)
189- let J = g(aj)
190- let ab = k(aj, aa)
191- let ac = 2
192- let G = [StringEntry(f(), aj)]
193- Z(aa, ab, J, ac, G)
195+@Callable(aj)
196+func voteForNewManger (an) = {
197+ let ae = toBase58String(aj.caller.bytes)
198+ let N = g(an)
199+ let af = k(an, ae)
200+ let ag = 2
201+ let K = [StringEntry(f(), an)]
202+ ad(ae, af, N, ag, K)
194203 }
195204
196205
197206
198-@Callable(af)
207+@Callable(aj)
199208 func deactivateManager () = {
200- let aa = toBase58String(af.caller.bytes)
201- let J = l()
202- let ab = n(aa)
203- let ac = 1
204- let G = [DeleteEntry(e())]
205- Z(aa, ab, J, ac, G)
209+ let ae = toBase58String(aj.caller.bytes)
210+ let N = l()
211+ let af = n(ae)
212+ let ag = 1
213+ let K = [DeleteEntry(e())]
214+ ad(ae, af, N, ag, K)
206215 }
207216
208217
209218
210-@Callable(af)
219+@Callable(aj)
211220 func activateManager () = {
212- let aa = toBase58String(af.caller.bytes)
213- let J = o()
214- let ab = q(aa)
215- let ac = 2
216- let ak = getStringValue(f())
217- let G = [StringEntry(e(), ak)]
218- Z(aa, ab, J, ac, G)
221+ let ae = toBase58String(aj.caller.bytes)
222+ let N = o()
223+ let af = q(ae)
224+ let ag = 2
225+ let ao = getStringValue(f())
226+ let K = [StringEntry(e(), ao)]
227+ ad(ae, af, N, ag, K)
219228 }
220229
221230
222231
223-@Callable(af)
224-func addNewAdmin (al) = {
225- let aa = toBase58String(af.caller.bytes)
226- let J = r(al)
227- let ab = u(al, aa)
228- let ac = 2
229- let am = y()
230- let x = indexOf(am, al)
231- if ($isInstanceOf(x, "Int"))
232+@Callable(aj)
233+func addNewAdmin (ap) = {
234+ let ae = toBase58String(aj.caller.bytes)
235+ let N = r(ap)
236+ let af = u(ap, ae)
237+ let ag = 2
238+ let aq = C()
239+ let B = indexOf(aq, ap)
240+ if ($isInstanceOf(B, "Int"))
232241 then {
233- let D = x
234- c((al + " already in Admin List"))
242+ let H = B
243+ c((ap + " already in Admin List"))
235244 }
236245 else {
237- let an = (am :+ al)
238- let G = [StringEntry(v(), makeString(an, a))]
239- Z(aa, ab, J, ac, G)
246+ let ar = (aq :+ ap)
247+ let K = [StringEntry(z(), makeString(ar, a))]
248+ ad(ae, af, N, ag, K)
240249 }
250+ }
251+
252+
253+
254+@Callable(aj)
255+func removeAdmin (w) = {
256+ let ae = toBase58String(aj.caller.bytes)
257+ let N = v(w)
258+ let af = y(w, ae)
259+ let ag = 2
260+ let aq = C()
261+ let B = indexOf(aq, w)
262+ if ($isInstanceOf(B, "Int"))
263+ then {
264+ let as = B
265+ let ar = removeByIndex(aq, as)
266+ let K = [StringEntry(z(), makeString(ar, a))]
267+ ad(ae, af, N, ag, K)
268+ }
269+ else c((w + " not found in Admin List"))
241270 }
242271
243272

github/deemru/w8io/026f985 
86.50 ms