Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Jan 30, 2024
1 parent 1c8165f commit 20579cb
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 11 deletions.
2 changes: 0 additions & 2 deletions www/apps/api/src/app/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ export class AppService {

async putDeploy(signedDeploy: Deploy, speculative = false, apiUrl: string): Promise<DeployReturn> {
const sdk = this.sdkService.getCasperSDK(apiUrl);
console.log(signedDeploy);
console.log(signedDeploy.toJson());
if (signedDeploy && !signedDeploy.validateDeploySize()) {
console.error(signedDeploy);
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -196,8 +194,6 @@ export class ArgBuilderComponent implements AfterViewInit, OnDestroy {
private parseValue<T>(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;
Expand Down
2 changes: 1 addition & 1 deletion www/libs/feature/deployer/src/lib/arg-builder/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const defaultTabs: {
{ ...decimalsArg, install: true },
{
name: 'total_supply',
cl_type: CLType?.U64(),
cl_type: CLType?.U256(),
install: true
},
{
Expand Down
1 change: 0 additions & 1 deletion www/libs/util/services/deploy/src/lib/deploy.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions www/libs/util/services/wasm/src/lib/wasm.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export const fetchWasmFactory = async (): Promise<deployer.Deployer> => {
export const fetchSDKFactory = async (): Promise<casper_sdk.SDK> => {
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<T>(
Expand Down

0 comments on commit 20579cb

Please sign in to comment.