Skip to content

Commit

Permalink
move tx text to var
Browse files Browse the repository at this point in the history
  • Loading branch information
wirwolf committed May 16, 2020
1 parent 67434d0 commit 67554b4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ APP_NODE_PRIVATE_KEY=***********
APP_NODE_API_DEBUG_PROXY=false
APP_NODE_API_DEBUG_PROXY_HOST=127.0.0.1
APP_NODE_API_DEBUG_PROXY_PORT=9000

APP_NODE_STOP_TEXT=Auto off

APP_API_SERVER_HOST=*
APP_API_SERVER_PORT=4000
Expand Down
1 change: 1 addition & 0 deletions app/src/Config/app-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export class ConfigFactory {
baseURL: env('APP_NODE_BASE_URL', 'http://localhost:8841'),
privateKey: env('APP_NODE_PRIVATE_KEY', ''),
publicKeyValidator: env('APP_NODE_PUBLIC_KEY_VALIDATOR', ''),
stopText: env('APP_NODE_STOP_TEXT', 'Auto off'),
debugProxy: {
active: envBoolean('APP_NODE_API_DEBUG_PROXY', false),
host: env('APP_NODE_API_DEBUG_PROXY_HOST', '127.0.0.1'),
Expand Down
1 change: 1 addition & 0 deletions app/src/Modules/NodeApi/Interfaces/NodeConfigInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export interface NodeApiConfigInterface {
baseURL: string;
privateKey: string;
publicKeyValidator: string;
stopText: string;
debugProxy: {
active: boolean;
host: string;
Expand Down
2 changes: 1 addition & 1 deletion app/src/Modules/NodeApi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class NodeApi {
chainId: this.blockchainConfig.chainId,
feeCoinSymbol: this.blockchainConfig.feeCoinSymbol,
gasPrice: gasPrice,
message: 'Auto Off',
message: this.config.stopText,
});
let txHash:Promise<string> = this.minterSDK.postTx(txParams);
txHash.then((txString: string) => {
Expand Down

0 comments on commit 67554b4

Please sign in to comment.