From 74e8e18570482f12d4f23653cf0329b70dc89334 Mon Sep 17 00:00:00 2001 From: Daniel Lima Date: Mon, 25 Nov 2024 10:30:45 -0300 Subject: [PATCH] Refactor: use println instead of printf --- evm/generators.go | 4 ++-- examples/ownable-erc-721/OwnableERC721.go | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/evm/generators.go b/evm/generators.go index 6cc36cd..145e6db 100644 --- a/evm/generators.go +++ b/evm/generators.go @@ -1410,7 +1410,7 @@ func {{.DeployHandler.HandlerName}}() *cobra.Command { if calldata { deployCalldataHex := hex.EncodeToString(deployCalldata) - cmd.Printf(deployCalldataHex) + cmd.Println(deployCalldataHex) return nil } @@ -1758,7 +1758,7 @@ func {{.HandlerName}}() *cobra.Command { if calldata { txCalldataHex := hex.EncodeToString(txCalldata) - cmd.Printf(txCalldataHex) + cmd.Println(txCalldataHex) return nil } diff --git a/examples/ownable-erc-721/OwnableERC721.go b/examples/ownable-erc-721/OwnableERC721.go index 2ea8bb5..52d4855 100644 --- a/examples/ownable-erc-721/OwnableERC721.go +++ b/examples/ownable-erc-721/OwnableERC721.go @@ -1421,7 +1421,7 @@ func CreateOwnableERC721DeploymentCommand() *cobra.Command { if calldata { deployCalldataHex := hex.EncodeToString(deployCalldata) - cmd.Printf(deployCalldataHex) + cmd.Println(deployCalldataHex) return nil } @@ -2343,7 +2343,7 @@ func CreateApproveCommand() *cobra.Command { if calldata { txCalldataHex := hex.EncodeToString(txCalldata) - cmd.Printf(txCalldataHex) + cmd.Println(txCalldataHex) return nil } @@ -2570,7 +2570,7 @@ func CreateMintCommand() *cobra.Command { if calldata { txCalldataHex := hex.EncodeToString(txCalldata) - cmd.Printf(txCalldataHex) + cmd.Println(txCalldataHex) return nil } @@ -2777,7 +2777,7 @@ func CreateRenounceOwnershipCommand() *cobra.Command { if calldata { txCalldataHex := hex.EncodeToString(txCalldata) - cmd.Printf(txCalldataHex) + cmd.Println(txCalldataHex) return nil } @@ -3007,7 +3007,7 @@ func CreateSafeTransferFromCommand() *cobra.Command { if calldata { txCalldataHex := hex.EncodeToString(txCalldata) - cmd.Printf(txCalldataHex) + cmd.Println(txCalldataHex) return nil } @@ -3259,7 +3259,7 @@ func CreateSafeTransferFrom0Command() *cobra.Command { if calldata { txCalldataHex := hex.EncodeToString(txCalldata) - cmd.Printf(txCalldataHex) + cmd.Println(txCalldataHex) return nil } @@ -3494,7 +3494,7 @@ func CreateSetApprovalForAllCommand() *cobra.Command { if calldata { txCalldataHex := hex.EncodeToString(txCalldata) - cmd.Printf(txCalldataHex) + cmd.Println(txCalldataHex) return nil } @@ -3731,7 +3731,7 @@ func CreateTransferFromCommand() *cobra.Command { if calldata { txCalldataHex := hex.EncodeToString(txCalldata) - cmd.Printf(txCalldataHex) + cmd.Println(txCalldataHex) return nil } @@ -3951,7 +3951,7 @@ func CreateTransferOwnershipCommand() *cobra.Command { if calldata { txCalldataHex := hex.EncodeToString(txCalldata) - cmd.Printf(txCalldataHex) + cmd.Println(txCalldataHex) return nil }