diff options
| author | Im-Beast <franik.mateusz@gmail.com> | 2024-10-15 17:43:56 +0200 |
|---|---|---|
| committer | Im-Beast <franik.mateusz@gmail.com> | 2024-10-15 17:43:56 +0200 |
| commit | d566c8ac5dca40015a77618e7e1023914cda67ea (patch) | |
| tree | 01e57a1c483370a3f023ed27d401069502694396 /impls/monero.ts/src | |
| parent | a455f83ee41b8d07faaaa8ecf351445b34e5a94f (diff) | |
fix: commitUR not being a symbol in wowneroregression-tests
Diffstat (limited to 'impls/monero.ts/src')
| -rw-r--r-- | impls/monero.ts/src/pending_transaction.ts | 9 | ||||
| -rw-r--r-- | impls/monero.ts/src/symbols.ts | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/impls/monero.ts/src/pending_transaction.ts b/impls/monero.ts/src/pending_transaction.ts index 12ad719..169332f 100644 --- a/impls/monero.ts/src/pending_transaction.ts +++ b/impls/monero.ts/src/pending_transaction.ts @@ -43,10 +43,17 @@ export class PendingTransaction { } async commitUR(maxFragmentLength: number): Promise<string | null> { - const result = await getSymbol("PendingTransaction_commitUR")( + const commitUR = getSymbol("PendingTransaction_commitUR"); + + if (!commitUR) { + return null; + } + + const result = await commitUR( this.#pendingTxPtr, maxFragmentLength, ); + if (!result) return null; await this.throwIfError(); return await readCString(result) || null; diff --git a/impls/monero.ts/src/symbols.ts b/impls/monero.ts/src/symbols.ts index 0c91f38..38707b8 100644 --- a/impls/monero.ts/src/symbols.ts +++ b/impls/monero.ts/src/symbols.ts @@ -418,6 +418,7 @@ export const moneroSymbols = { result: "bool", }, "MONERO_PendingTransaction_commitUR": { + optional: true, nonblocking: true, // void* pendingTx_ptr, int max_fragment_length parameters: ["pointer", "i32"], |
