fix: linter & tests

This commit is contained in:
Kalvis Kalniņš
2019-01-09 20:02:58 +02:00
parent 73845813f9
commit 875ec553cf
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
// Timur Ramazanov <https://github.com/charlie-wasp>
// Kalvis Kalniņš <https://github.com/Akuukis>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
// TypeScript Version: 2.9
/// <reference types="node" />
+1 -2
View File
@@ -6,8 +6,7 @@ const account = new StellarSdk.Account(sourceKey.publicKey(), '1');
const transaction = new StellarSdk.TransactionBuilder(account)
.addOperation(StellarSdk.Operation.accountMerge({destination: destKey.publicKey()}))
.addMemo(new StellarSdk.Memo(StellarSdk.MemoText, "memo"))
.build(); // $ExpectType () => Transaction
transaction; // $ExpectType Transaction
.build(); // $ExpectType () => Transaction<AnyType, TransactionOperation[]>
StellarSdk.StellarTomlResolver.resolve("example.com", {allowHttp: true, timeout: 100})
.then(toml => toml.FEDERATION_SERVER);