github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/fvm/blueprints/scripts/setupFeesTransactionTemplate.cdc (about)

     1  import FlowFees from "FlowFees"
     2  
     3  transaction(surgeFactor: UFix64, inclusionEffortCost: UFix64, executionEffortCost: UFix64) {
     4      prepare(service: auth(BorrowValue) &Account) {
     5  
     6          let flowFeesAdmin = service.storage.borrow<&FlowFees.Administrator>(from: /storage/flowFeesAdmin)
     7              ?? panic("Could not borrow reference to the flow fees admin!");
     8  
     9          flowFeesAdmin.setFeeParameters(surgeFactor: surgeFactor, inclusionEffortCost: inclusionEffortCost, executionEffortCost: executionEffortCost)
    10      }
    11  }