DeploySEALED
▒■╳$&□▪%^●$□!?▓◆▪^▫@╱▪%■▪○&□╳□▫●╳▓░~○?■╳□▫*?^█#&#▫●~~~▒@%●□~◆▫?$
Transaction ID
Execution Fee
0.00000194 FLOWTransaction Summary
DeployContract deployment
Contract deployment
Script Arguments
0nameString
Clock
1codeString
/// This contract is copied from https://github.com/findonflow/find/blob/main/contracts/Clock.cdc
/// Thank you to the good folks at findonflow for sharing this helpful utility contract.
///
/// Versions on test networks expose the ability to mock time, but on mainnet, this contract simply returns the current
/// block timestamp.
///
access(all) contract Clock {
/// Gets the current time
///
access(all) fun time() : UFix64 {
return getCurrentBlock().timestamp
}
}
Cadence Script
1transaction(name: String, code: String ) {
2 prepare(signer: AuthAccount) {
3 signer.contracts.add(name: name, code: code.utf8 )
4 }
5 }