PHP WebShell
Текущая директория: /opt/BitGoJS/modules/account-lib/test/resources
Просмотр файла: testTransaction.ts
import { BaseKey, BaseTransaction } from '@bitgo/sdk-core';
/**
* The purpose of this coin is to provide a mock to use for the test runner since there is no easy
* way to mock abstract methods with sinon.
*/
export class TestTransaction extends BaseTransaction {
canSign(key: BaseKey): boolean {
return true;
}
// eslint-disable-next-line @typescript-eslint/no-empty-function
toJson(): any {}
// eslint-disable-next-line @typescript-eslint/no-empty-function
toBroadcastFormat(): any {}
}
Выполнить команду
Для локальной разработки. Не используйте в интернете!