Smart Contract

MotoGPAdmin

A.a49cc0ee46c54bfb.MotoGPAdmin

Deployed

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

Dependents

0 imports
1pub contract MotoGPAdmin{
2
3    pub fun getVersion(): String {
4        return "1.0.1"
5    }
6    
7    pub resource Admin {
8        // createAdmin
9        // only an admin can ever create
10        // a new Admin resource
11        //
12        pub fun createAdmin(): @Admin {
13            return <- create Admin()
14        }
15    }
16
17    init() {
18        self.account.save(<- create Admin(), to: /storage/motogpAdmin)
19    }
20}