Skip to content

Commit

Permalink
fix(account): add implementation of signTypedData in AccountBase
Browse files Browse the repository at this point in the history
To revert breaking change done in 13.1.0
  • Loading branch information
davidyuk committed Jul 25, 2023
1 parent 17ff38e commit fc6e42f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/account/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Node from '../Node';
import CompilerBase from '../contract/compiler/Base';
import { Int } from '../tx/builder/constants';
import { AciValue, Domain } from '../utils/typed-data';
import { NotImplementedError } from '../utils/errors';

interface AuthData {
fee?: Int;
Expand Down Expand Up @@ -60,14 +61,20 @@ export default abstract class AccountBase {
* @param options - Options
* @returns Signature
*/
abstract signTypedData(
// TODO: make abstract in the next major release
// eslint-disable-next-line class-methods-use-this
async signTypedData(
/* eslint-disable @typescript-eslint/no-unused-vars */
data: Encoded.ContractBytearray,
aci: AciValue,
options?: Domain & {
aeppOrigin?: string;
aeppRpcClientId?: string;
},
): Promise<Encoded.Signature>;
/* eslint-enable @typescript-eslint/no-unused-vars */
): Promise<Encoded.Signature> {
throw new NotImplementedError('signTypedData method');
}

/**
* Sign data blob
Expand Down

0 comments on commit fc6e42f

Please sign in to comment.