Smart Contract

Debug

A.30cf5dcf6ea8d379.Debug

Deployed

1d ago
Feb 26, 2026, 09:43:51 PM UTC

Dependents

0 imports
1pub contract Debug {
2
3	pub event Log(msg: String)
4	
5	access(account) var enabled :Bool
6
7	pub fun log(_ msg: String) {
8		if self.enabled {
9			emit Log(msg: msg)
10		}
11	}
12
13	access(account) fun enable(_ value:Bool) {
14		self.enabled=value
15	}
16
17	init() {
18		self.enabled=false
19	}
20
21
22}
23