Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class EthereumPrivateKeyCipherProvider
*
* @param option
*/
public switchOnOffDecryption(option: boolean): void {
public enableDecryption(option: boolean): void {
this.isDecryptionOn = option;
}
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export default class LitProvider implements CipherProviderTypes.ICipherProvider
*
* @param option
*/
public switchOnOffDecryption(option: boolean): void {
public enableDecryption(option: boolean): void {
this.isDecryptionOn = option;
}

Expand Down
4 changes: 2 additions & 2 deletions packages/transaction-manager/test/unit/utils/test-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const fakeDecryptionProvider: DecryptionProviderTypes.IDecryptionProvider
};

export class FakeEpkCipherProvider implements CipherProviderTypes.ICipherProvider {
switchOnOffDecryption(option: boolean): void {
enableDecryption(option: boolean): void {
throw new Error('Method not implemented.');
}
isEncryptionAvailable(): boolean {
Expand Down Expand Up @@ -177,7 +177,7 @@ export class FakeLitProtocolProvider implements CipherProviderTypes.ICipherProvi
constructor() {
this.storedRawData = '';
}
switchOnOffDecryption(option: boolean): void {
enableDecryption(option: boolean): void {
throw new Error('Method not implemented.');
}
isEncryptionAvailable(): boolean {
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/cipher-provider-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ export interface ICipherProvider {
* Switches on/off decryption.
* @param option - A boolean indicating if decryption should be switched on/off.
*/
switchOnOffDecryption(option: boolean): void;
enableDecryption(option: boolean): void;
}