From 21125a05d30417b76b5fea27e0f4e8c48923cf0b Mon Sep 17 00:00:00 2001 From: angrybayblade Date: Fri, 17 May 2024 17:33:11 +0530 Subject: [PATCH 1/2] fix: transaction price on the activate service --- operate/cli.py | 1 + operate/services/manage.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/operate/cli.py b/operate/cli.py index c91b5cb0..f277d723 100644 --- a/operate/cli.py +++ b/operate/cli.py @@ -432,6 +432,7 @@ async def _create_safe(request: Request) -> t.List[t.Dict]: to=t.cast(str, wallet.safe), amount=int(1e18), chain_type=chain_type, + from_safe=False, ) return JSONResponse(content={"safe": wallet.safe, "message": "Safe created!"}) diff --git a/operate/services/manage.py b/operate/services/manage.py index 612c2f5c..708f4a5f 100644 --- a/operate/services/manage.py +++ b/operate/services/manage.py @@ -357,7 +357,7 @@ def deploy_service_onchain_from_safe( # pylint: disable=too-many-statements,too if balance < required_olas: raise ValueError( "You don't have enough olas to stake, " - f"address: {wallet.safe}; required olas: {required_olas}; your balance {balance}" + f"address: {wallet.safe}; required olas: {required_olas}; your balance: {balance}" ) if service.chain_data.on_chain_state == OnChainState.NOTMINTED: @@ -436,6 +436,7 @@ def deploy_service_onchain_from_safe( # pylint: disable=too-many-statements,too self.logger.info( f"Approved {token_utility_allowance} OLAS from {wallet.safe} to {token_utility}" ) + cost_of_bond = 0 self.logger.info("Activating service") sftxb.new_tx().add( From 748685a2405adca7c8b007bab41178f7e00df1df Mon Sep 17 00:00:00 2001 From: angrybayblade Date: Fri, 17 May 2024 17:34:25 +0530 Subject: [PATCH 2/2] feat: bump to v0.1.0-rc17 --- electron/install.js | 2 +- package.json | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/electron/install.js b/electron/install.js index 76b47212..0892d3af 100644 --- a/electron/install.js +++ b/electron/install.js @@ -7,7 +7,7 @@ const process = require('process'); const { spawnSync } = require('child_process'); const Docker = require('dockerode'); -const Version = '0.1.0rc16'; +const Version = '0.1.0rc17'; const OperateDirectory = `${os.homedir()}/.operate`; const VenvDir = `${OperateDirectory}/venv`; const VersionFile = `${OperateDirectory}/version.txt`; diff --git a/package.json b/package.json index bc9b35ec..96831941 100644 --- a/package.json +++ b/package.json @@ -52,5 +52,5 @@ "start": "electron .", "build": "rm -rf dist/ && electron-builder build" }, - "version": "0.1.0-rc16" + "version": "0.1.0-rc17" } diff --git a/pyproject.toml b/pyproject.toml index 55a83492..f7a0d38a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "olas-operate-middleware" -version = "0.1.0-rc16" +version = "0.1.0-rc17" description = "" authors = ["David Vilela ", "Viraj Patel "] readme = "README.md"