Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 18x 18x 5x 5x 13x | import { rpc } from "@stellar/stellar-sdk";
export class TxResult {
constructor(private _txResultData: any, private _errorMsg: string) { }
validatedData(): any {
if (this._txResultData.status !== rpc.Api.GetTransactionStatus.SUCCESS) {
console.log(this._errorMsg, JSON.stringify(this._txResultData, null, 2));
throw new Error(this._errorMsg);
}
return this._txResultData;
}
}
|