From db6c05a8e8645868c45b05664b3397a262f9c07c Mon Sep 17 00:00:00 2001 From: Michal Iskierko Date: Mon, 3 Apr 2023 12:58:36 +0200 Subject: [PATCH] fix(DeployCollectiblesEstimate): Add DeployCollectiblesEstimate function Issue #10035 --- VERSION | 2 +- services/collectibles/api.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 5cf432942..a5df0ec71 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.142.7 +0.142.8 diff --git a/services/collectibles/api.go b/services/collectibles/api.go index 130b88ac6..176911ee5 100644 --- a/services/collectibles/api.go +++ b/services/collectibles/api.go @@ -105,6 +105,11 @@ func (api *API) Deploy(ctx context.Context, chainID uint64, deploymentParameters return DeploymentDetails{address.Hex(), tx.Hash().Hex()}, nil } +// Returns gas units + 10% +func (api *API) DeployCollectiblesEstimate(ctx context.Context) (uint64, error) { + return 3702411, nil +} + func (api *API) newCollectiblesInstance(chainID uint64, contractAddress string) (*collectibles.Collectibles, error) { backend, err := api.RPCClient.EthClient(chainID) if err != nil {