From 85f0ac2c4968d7d7b04d646a3ae82aa3c58ad623 Mon Sep 17 00:00:00 2001 From: Nikita Date: Tue, 5 Mar 2024 10:15:58 +0400 Subject: [PATCH] refactor(aeternity): do not wait transaction mining to finalize transfer --- src/protocols/aeternity/libs/AeternityAdapter.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/protocols/aeternity/libs/AeternityAdapter.ts b/src/protocols/aeternity/libs/AeternityAdapter.ts index 45366c45b..e26edfa10 100644 --- a/src/protocols/aeternity/libs/AeternityAdapter.ts +++ b/src/protocols/aeternity/libs/AeternityAdapter.ts @@ -440,7 +440,10 @@ export class AeternityAdapter extends BaseProtocolAdapter { return aeSdk.spendWithCustomOptions( amount, recipient as Encoded.AccountAddress, - { payload: encode(Buffer.from(options.payload), Encoding.Bytearray) }, + { + waitMined: false, + payload: encode(Buffer.from(options.payload), Encoding.Bytearray), + }, ); }