Skip to content

Estimate an array of Operations async #171

@simonmcl

Description

@simonmcl

Operations are estimated individually when using policy: .estimate. When dealing with an array of operations where operation 2 depends on operation 1, estimation will fail to return the correct values, as the second operation will fail.

It would be useful to have a standalone method to estimate bigger operations in an async manner. Something like:

tezosNodeClient.feeEstimator.estimate(operations: ops) { result in
    switch result {
        case .success(let operations):
            // do something with new operations

        case .failure(let error):
            print("Error: \(error)")
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions