返回 AiToEarn
relay-account.exception.ts
根目录 / project / aitoearn-backend / apps / aitoearn-server / src / core / channels / relay / relay-account.exception.ts
1 export class RelayAccountException extends Error {
2 public readonly accountIdMap: Map<string, string>
3
4 constructor(
5 public readonly relayAccountRef: string,
6 public readonly originalAccountId: string,
7 accountIdMap?: Map<string, string>,
8 ) {
9 super('This account requires relay')
10 this.accountIdMap = accountIdMap ?? new Map([[originalAccountId, relayAccountRef]])
11 }
12 }
13
13 lines TYPESCRIPT