Skip to content
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

Merged
merged 5 commits into from
Apr 16, 2024
Merged

fix: add logs for transaction failing #614

merged 5 commits into from
Apr 16, 2024

Conversation

Aetet
Copy link
Contributor

@Aetet Aetet commented Apr 11, 2024

No description provided.

async wait(): Promise<any> { return Promise.reject("asd") }
}

jest.mock("@rarible/sdk-transaction", () => { // replace with actual path
Copy link
Contributor

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") {
Copy link
Contributor

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((_) => {})
Copy link
Contributor

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary delay

@ex1st0r ex1st0r merged commit a23b740 into master Apr 16, 2024
1 check passed
@ex1st0r ex1st0r deleted the fix-wait-logger branch April 16, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants