putDeploy method

Future<PutDeployResult> putDeploy(
  1. Deploy deploy
)

Sends a Deploy to the network to be executed. PutDeployResult contains the hash of the deploy.

Implementation

Future<PutDeployResult> putDeploy(Deploy deploy) async {
  if (deploy.approvals.isEmpty) {
    throw ArgumentError('Deploy must be signed before sending to the network');
  }
  return _nodeClient.putDeploy(PutDeployParams(deploy));
}