Skip to content

Commit

Permalink
chore(cleanup): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zone-live committed Oct 20, 2023
1 parent 32f6154 commit 33d1667
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions packages/sdk/src/custodianApi/eca3/ECA3CustodianApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,46 +304,6 @@ export class ECA3CustodianApi extends EventEmitter implements ICustodianApi {
};
}

async eca3_signTypedData_v4(
signedTypedMessageParams: SignedTypedMessageParams,
signedTypedMessageMetadata: SignedTypedMessageMetadata,
): Promise<ITransactionDetails> {
const accounts = await this.getEthereumAccountsByAddress(signedTypedMessageParams.address);

if (!accounts.length) {
throw new Error("No such ethereum account!");
}

const version = signedTypedMessageParams.version.toLowerCase();

const { result } = await this.client.signTypedData([signedTypedMessageParams, signedTypedMessageMetadata]);

return {
custodian_transactionId: result,
transactionStatus: "created",
from: signedTypedMessageParams.address,
};
}

async eca3_signPersonalMessage(
signedMessageParams: SignedMessageParams,
signedMessageMetadata: SignedMessageMetadata,
): Promise<ITransactionDetails> {
const accounts = await this.getEthereumAccountsByAddress(signedMessageParams.address);

if (!accounts.length) {
throw new Error("No such ethereum account!");
}

const { result } = await this.client.signPersonalMessage([signedMessageParams, signedMessageMetadata]);

return {
custodian_transactionId: result,
transactionStatus: "created",
from: accounts[0].address,
};
}

// DEPRECATED
async getErc20Tokens(): Promise<IMetamaskContractMetadata> {
return {};
Expand Down

0 comments on commit 33d1667

Please sign in to comment.