From ae04d7a46a3bdcf7168647e70eae13ff6d856c7f Mon Sep 17 00:00:00 2001 From: Phoebe Lartisant Date: Thu, 5 Dec 2024 11:59:15 -0500 Subject: [PATCH] gci --- int/api/cmd/deploySC.go | 2 +- pkg/node/sendoperation/executesc/executesc.go | 2 -- pkg/onchain/sc.go | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/int/api/cmd/deploySC.go b/int/api/cmd/deploySC.go index 502a28050..d61baa719 100644 --- a/int/api/cmd/deploySC.go +++ b/int/api/cmd/deploySC.go @@ -82,7 +82,7 @@ func (d *deploySC) Handle(params operations.CmdDeploySCParams) middleware.Respon sendoperation.MaxGasAllowedExecuteSC, // default maxCoins, // maxCoins coins, // Coins to send for storage - fee, // operation fee + fee, // operation fee sendoperation.DefaultExpiryInSlot, parameters, smartContractByteCode, diff --git a/pkg/node/sendoperation/executesc/executesc.go b/pkg/node/sendoperation/executesc/executesc.go index 38fd3c418..caeb69d29 100644 --- a/pkg/node/sendoperation/executesc/executesc.go +++ b/pkg/node/sendoperation/executesc/executesc.go @@ -92,8 +92,6 @@ This function serialize the content of the datastore in a byte array and should compactAndAppendBytes(&byteArray, key) compactAndAppendBytes(&byteArray, value) } - - Function is unused right now */ //nolint:unused func compactAndAppendBytes(msg *[]byte, value interface{}) { diff --git a/pkg/onchain/sc.go b/pkg/onchain/sc.go index 92c9d376b..28011b2b7 100644 --- a/pkg/onchain/sc.go +++ b/pkg/onchain/sc.go @@ -142,7 +142,7 @@ func DeploySC( client, networkInfos.ChainID, expiry, - fees + coins, + fees+coins, exeSCOperation, nickname, signer,