Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

errors.ts 368B

1234567891011
  1. export class BadTxHashError extends Error{
  2. constructor(hash:string){
  3. super(`Bad tx hash format: "${hash}"`)
  4. }
  5. }
  6. export class CannotVerifyOwnerError extends Error{
  7. constructor(hash: string, actualAccount: string, desiredAccount: string){
  8. super((`Expected tx "${hash}" to be initiated by ${desiredAccount} but was ${actualAccount}`))
  9. }
  10. }