From 20579cb4990ff906ab289dc234849eeac7d2b4d4 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Tue, 30 Jan 2024 12:48:21 +0100 Subject: [PATCH] Clean up --- www/apps/api/src/app/app.service.ts | 2 -- .../api/src/app/controller/deployer/deployer.controller.ts | 1 - .../deployer/src/lib/arg-builder/arg-builder.component.ts | 4 ---- www/libs/feature/deployer/src/lib/arg-builder/tabs.ts | 2 +- www/libs/util/services/deploy/src/lib/deploy.service.ts | 1 - www/libs/util/services/wasm/src/lib/wasm.factory.ts | 3 +-- 6 files changed, 2 insertions(+), 11 deletions(-) diff --git a/www/apps/api/src/app/app.service.ts b/www/apps/api/src/app/app.service.ts index 73d94da..9212057 100644 --- a/www/apps/api/src/app/app.service.ts +++ b/www/apps/api/src/app/app.service.ts @@ -100,8 +100,6 @@ export class AppService { async putDeploy(signedDeploy: Deploy, speculative = false, apiUrl: string): Promise { const sdk = this.sdkService.getCasperSDK(apiUrl); - console.log(signedDeploy); - console.log(signedDeploy.toJson()); if (signedDeploy && !signedDeploy.validateDeploySize()) { console.error(signedDeploy); return; diff --git a/www/apps/api/src/app/controller/deployer/deployer.controller.ts b/www/apps/api/src/app/controller/deployer/deployer.controller.ts index ba717a4..6b9eaec 100644 --- a/www/apps/api/src/app/controller/deployer/deployer.controller.ts +++ b/www/apps/api/src/app/controller/deployer/deployer.controller.ts @@ -116,7 +116,6 @@ export class DeployerController { console.error(signedDeployFromJson.val.message); return; } - console.log(signedDeployFromJson); const deploy = new Deploy(signedDeployFromJson); return await this.appService.putDeploy(deploy, speculative, apiUrl); } catch (error) { diff --git a/www/libs/feature/deployer/src/lib/arg-builder/arg-builder.component.ts b/www/libs/feature/deployer/src/lib/arg-builder/arg-builder.component.ts index cd3dacf..4607396 100644 --- a/www/libs/feature/deployer/src/lib/arg-builder/arg-builder.component.ts +++ b/www/libs/feature/deployer/src/lib/arg-builder/arg-builder.component.ts @@ -153,8 +153,6 @@ export class ArgBuilderComponent implements AfterViewInit, OnDestroy { private parseType(input: HTMLInputElement, type: string) { const inputValue = input.value.trim(); - console.log(type); - switch (type) { case CLType.Option(CLType.Any()).toString(): { const parsedInput = JSON.parse(inputValue); @@ -196,8 +194,6 @@ export class ArgBuilderComponent implements AfterViewInit, OnDestroy { private parseValue(input: HTMLInputElement, type: string): T { const inputValue = input.value.trim(); - console.log(inputValue); - switch (type) { case CLType.Bool().toString(): return (inputValue.toLowerCase() === 'true') as unknown as T; diff --git a/www/libs/feature/deployer/src/lib/arg-builder/tabs.ts b/www/libs/feature/deployer/src/lib/arg-builder/tabs.ts index cd75e91..1b784f3 100644 --- a/www/libs/feature/deployer/src/lib/arg-builder/tabs.ts +++ b/www/libs/feature/deployer/src/lib/arg-builder/tabs.ts @@ -52,7 +52,7 @@ export const defaultTabs: { { ...decimalsArg, install: true }, { name: 'total_supply', - cl_type: CLType?.U64(), + cl_type: CLType?.U256(), install: true }, { diff --git a/www/libs/util/services/deploy/src/lib/deploy.service.ts b/www/libs/util/services/deploy/src/lib/deploy.service.ts index b3d8eb7..edc65fd 100644 --- a/www/libs/util/services/deploy/src/lib/deploy.service.ts +++ b/www/libs/util/services/deploy/src/lib/deploy.service.ts @@ -63,7 +63,6 @@ export class DeployService { session_entry_point && (session_params.session_entry_point = session_entry_point); session_version && (session_params.session_version = session_version); } else { - session_path && (session_params.session_path = session_path); session_path && wasm && (session_params.session_bytes = Bytes.fromUint8Array(wasm)); } session_args_json && (session_params.session_args_json = session_args_json); diff --git a/www/libs/util/services/wasm/src/lib/wasm.factory.ts b/www/libs/util/services/wasm/src/lib/wasm.factory.ts index 5dd83c3..0286d85 100644 --- a/www/libs/util/services/wasm/src/lib/wasm.factory.ts +++ b/www/libs/util/services/wasm/src/lib/wasm.factory.ts @@ -19,8 +19,7 @@ export const fetchWasmFactory = async (): Promise => { export const fetchSDKFactory = async (): Promise => { const wasm = await initSDK('assets/casper_rust_wasm_sdk_bg.wasm'); const casperSDK = new SDK('http://localhost:4200'); - console.log(casperSDK); - return wasm && new SDK('http://localhost:4200'); + return wasm && casperSDK; }; export function provideSafeAsync(