DeploySEALED

╲@■&#▪!#▪▫%▒?▪##╳^░■╲■~^^*□$▫~□░@@&@◆▪!╳□?╳▫■╲╱░#$!@~!○▓#▓~$█@&*

Transaction ID

Timestamp

Sep 10, 2024, 10:23:02 AM UTC
1y ago

Block Height

86,584,533

Computation

0

Execution Fee

0.00000924 FLOW

Transaction Summary

Deploy

Contract deployment

Contract deployment

Script Arguments

0nameString
TitRegistry
1codeString
access(all) contract TitRegistry { access(all) resource Admin { access(all) fun addUser(titID: UInt64, flowAddress: Address) { let newUser = User(titID: titID, flowAddress: flowAddress) TitRegistry.userList.append(newUser) } } access(all) struct User { access(all) let titID: UInt64 access(all) let flowAddress: Address init(titID: UInt64, flowAddress: Address) { self.titID = titID self.flowAddress = flowAddress } } access(all) var userList: [User] access(all) let AdminStoragePath: StoragePath init() { self.userList = [] self.AdminStoragePath = /storage/TitRegistryAdmin let admin <- create Admin() self.account.storage.save(<-admin, to: self.AdminStoragePath) } access(all) fun getUsers(): [User] { return self.userList } }

Cadence Script

1transaction(name: String, code: String ) {
2		prepare(signer: auth(AddContract) &Account) {
3			signer.contracts.add(name: name, code: code.utf8 )
4		}
5	}