Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
harisato committed Mar 29, 2024
1 parent 591c19d commit 15e8b87
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { join } from 'path';

import { BullModule } from '@nestjs/bull';
import { CacheInterceptor, CacheModule } from '@nestjs/cache-manager';
import { Module, ValidationPipe } from '@nestjs/common';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ import { BasicAllowance } from 'cosmjs-types/cosmos/feegrant/v1beta1/feegrant';
import { MsgGrantAllowance } from 'cosmjs-types/cosmos/feegrant/v1beta1/tx';

import { SigningCosmWasmClient } from '@cosmjs/cosmwasm-stargate';
import { calculateFee, GasPrice, StdFee } from '@cosmjs/stargate';
import { GasPrice } from '@cosmjs/stargate';
import { Injectable, Logger, OnModuleInit } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';

import { SysKeyService } from '../keys/syskey.service';
import { MasterWalletService } from '../user-wallet/master-wallet.service';
import { SystemCustodialWalletGraphql } from './system-custodial-wallet.graphql';
import { Any } from 'cosmjs-types/google/protobuf/any';
import { DirectSecp256k1HdWallet } from '@cosmjs/proto-signing';
Expand All @@ -19,7 +18,6 @@ export class SystemCustodialWalletService implements OnModuleInit {
private readonly logger = new Logger(SystemCustodialWalletService.name);
private granterWallet = null;
private granterWalletAddress: string;
private executeFee: StdFee;
private client: SigningCosmWasmClient;

constructor(
Expand Down Expand Up @@ -87,7 +85,6 @@ export class SystemCustodialWalletService implements OnModuleInit {
const gasPrice = GasPrice.fromString(
this.configService.get<string>('network.gasPrice')
);
this.executeFee = calculateFee(300_000, gasPrice);

// build client
const rpcEndpoint = this.configService.get<string>('network.rpcEndpoint');
Expand Down

0 comments on commit 15e8b87

Please sign in to comment.