fix(DeployCollectiblesEstimate): Add DeployCollectiblesEstimate function

Issue #10035
This commit is contained in:
Michal Iskierko 2023-04-03 12:58:36 +02:00 committed by Michał Iskierko
parent 170ae0d455
commit db6c05a8e8
2 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
0.142.7 0.142.8

View File

@ -105,6 +105,11 @@ func (api *API) Deploy(ctx context.Context, chainID uint64, deploymentParameters
return DeploymentDetails{address.Hex(), tx.Hash().Hex()}, nil 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) { func (api *API) newCollectiblesInstance(chainID uint64, contractAddress string) (*collectibles.Collectibles, error) {
backend, err := api.RPCClient.EthClient(chainID) backend, err := api.RPCClient.EthClient(chainID)
if err != nil { if err != nil {