Skip to content

Commit

Permalink
change mode string from CSC
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 committed Jun 7, 2024
1 parent 3c9d94d commit 130e126
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/processors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class Processors {
if (config.reverseRelayerCsc.isEnabled){
const subnetSmartContractMode = await this.subnetService.Mode();
switch (subnetSmartContractMode) {
case "reverse full":
case "reverse_full":
modes.push(Mode.REVERSE_FULL);
break;
default:
Expand Down
4 changes: 2 additions & 2 deletions src/service/mainnet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export class MainnetService {
return rlpHeaders;
}

async Mode(): Promise<"lite"| "full"| "reverse full"> {
async Mode(): Promise<"lite"| "full"| "reverse_full"> {
try {
return this.smartContractInstance.methods.MODE().call();
} catch (error) {
Expand Down Expand Up @@ -437,7 +437,7 @@ export class LiteMainnetService {
throw error;
}
}
async Mode(): Promise<"lite"| "full"| "reverse full"> {
async Mode(): Promise<"lite"| "full"| "reverse_full"> {
try {
return this.liteSmartContractInstance.methods.MODE().call();
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion src/service/subnet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export class SubnetService {
}


async Mode(): Promise<"lite"| "full"| "reverse full"> {
async Mode(): Promise<"lite"| "full"| "reverse_full"> {
try {
return this.smartContractInstance.methods.MODE().call();
} catch (error) {
Expand Down

0 comments on commit 130e126

Please sign in to comment.