@@ -26,7 +26,7 @@ type Inputs struct {
2626}
2727
2828func New (runtimeContext * runtime.Context ) * cobra.Command {
29- var generateBindingsCmd = & cobra.Command {
29+ generateBindingsCmd : = & cobra.Command {
3030 Use : "generate-bindings <chain-family>" ,
3131 Short : "Generate bindings from contract ABI" ,
3232 Long : `This command generates bindings from contract ABI files.
@@ -211,7 +211,7 @@ func (h *handler) processAbiDirectory(inputs Inputs) error {
211211
212212 // Create per-contract output directory
213213 contractOutDir := filepath .Join (inputs .OutPath , packageName )
214- if err := os .MkdirAll (contractOutDir , 0755 ); err != nil {
214+ if err := os .MkdirAll (contractOutDir , 0o755 ); err != nil {
215215 return fmt .Errorf ("failed to create contract output directory %s: %w" , contractOutDir , err )
216216 }
217217
@@ -247,7 +247,7 @@ func (h *handler) processSingleAbi(inputs Inputs) error {
247247
248248 // Create per-contract output directory
249249 contractOutDir := filepath .Join (inputs .OutPath , packageName )
250- if err := os .MkdirAll (contractOutDir , 0755 ); err != nil {
250+ if err := os .MkdirAll (contractOutDir , 0o755 ); err != nil {
251251 return fmt .Errorf ("failed to create contract output directory %s: %w" , contractOutDir , err )
252252 }
253253
@@ -280,7 +280,7 @@ func (h *handler) Execute(inputs Inputs) error {
280280 switch inputs .ChainFamily {
281281 case "evm" :
282282 // Create output directory if it doesn't exist
283- if err := os .MkdirAll (inputs .OutPath , 0755 ); err != nil {
283+ if err := os .MkdirAll (inputs .OutPath , 0o755 ); err != nil {
284284 return fmt .Errorf ("failed to create output directory: %w" , err )
285285 }
286286
@@ -304,7 +304,7 @@ func (h *handler) Execute(inputs Inputs) error {
304304 if err != nil {
305305 return err
306306 }
307- err = runCommand (inputs .ProjectRoot , "go" , "get" , "github.com/smartcontractkit/cre-sdk-go/capabilities/blockchain/evm@" + creinit .SdkVersion )
307+ err = runCommand (inputs .ProjectRoot , "go" , "get" , "github.com/smartcontractkit/cre-sdk-go/capabilities/blockchain/evm@" + creinit .CapabilitiesVersion )
308308 if err != nil {
309309 return err
310310 }
0 commit comments