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