-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add logs for transaction failing #614
Conversation
async wait(): Promise<any> { return Promise.reject("asd") } | ||
} | ||
|
||
jest.mock("@rarible/sdk-transaction", () => { // replace with actual path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This mock brokes some tests
Need to move this mock to target test or move whole test to separated file
: responsePromise) | ||
|
||
returnedPromis.then(async (tx) => { | ||
if (tx?.transaction?.constructor.name === "BlockchainEthereumTransaction") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to improve instance checking
await remoteLogger.raw(dataContainer.getErrorData(wrappedError || err, { method: replaceMethodPart(callable.name, "wait") })) | ||
} | ||
} | ||
}).catch((_) => {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove argument if it's not needed (lint fix)
} | ||
} catch (e) { } | ||
|
||
await delay(1000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary delay
No description provided.