github.com/koko1123/flow-go-1@v0.29.6/fvm/blueprints/scripts/setupParametersTransactionTemplate.cdc (about) 1 import FlowStorageFees from 0xFLOWSTORAGEFEESADDRESS 2 import FlowServiceAccount from 0xFLOWSERVICEADDRESS 3 4 transaction(accountCreationFee: UFix64, minimumStorageReservation: UFix64, storageMegaBytesPerReservedFLOW: UFix64, restrictedAccountCreationEnabled: Bool) { 5 prepare(service: AuthAccount) { 6 let serviceAdmin = service.borrow<&FlowServiceAccount.Administrator>(from: /storage/flowServiceAdmin) 7 ?? panic("Could not borrow reference to the flow service admin!"); 8 9 let storageAdmin = service.borrow<&FlowStorageFees.Administrator>(from: /storage/storageFeesAdmin) 10 ?? panic("Could not borrow reference to the flow storage fees admin!"); 11 12 serviceAdmin.setAccountCreationFee(accountCreationFee) 13 serviceAdmin.setIsAccountCreationRestricted(restrictedAccountCreationEnabled) 14 storageAdmin.setMinimumStorageReservation(minimumStorageReservation) 15 storageAdmin.setStorageMegaBytesPerReservedFLOW(storageMegaBytesPerReservedFLOW) 16 } 17 }