github.com/koko1123/flow-go-1@v0.29.6/fvm/blueprints/scripts/createFlowTokenMinterTransactionTemplate.cdc (about) 1 import FlowToken from 0xFLOWTOKENADDRESS 2 3 transaction { 4 prepare(serviceAccount: AuthAccount) { 5 /// Borrow a reference to the Flow Token Admin in the account storage 6 let flowTokenAdmin = serviceAccount.borrow<&FlowToken.Administrator>(from: /storage/flowTokenAdmin) 7 ?? panic("Could not borrow a reference to the Flow Token Admin resource") 8 9 /// Create a flowTokenMinterResource 10 let flowTokenMinter <- flowTokenAdmin.createNewMinter(allowedAmount: 1000000000.0) 11 12 serviceAccount.save(<-flowTokenMinter, to: /storage/flowTokenMinter) 13 } 14 }