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

Split out metadata uploading from ReceivableService.createReceivableWithMetadata #12

Merged
merged 2 commits into from Aug 17, 2023

Conversation

mliu
Copy link
Collaborator

@mliu mliu commented Aug 17, 2023

We need to enable our Celo partners to mint RWR with metadata. Because Celo is unsupported by Bundlr, I'm splitting out the metadata upload function to allow partners to optionally pay for their metadata upload on different networks.

@height
Copy link

height bot commented Aug 17, 2023

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

REACT_APP_ALCHEMY_API_KEY_2=
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we can name the alchemy api key by chain?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll eventually need to take a second pass on all the examples and move them into the huma-sdk repo directory, so I'll take this as a TODO until then

`Using ${walletOnRWRNetwork.address} to create RealWorldReceivable`
);

// Prefund Bundlr with MATIC
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we delete this part as it's commented? Or it will be used later?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They can prefund on the first try. I will uncomment it.

@@ -305,11 +338,12 @@ describe('declareReceivablePaymentByReferenceId', () => {

describe('declareReceivablePaymentByTokenId', () => {
beforeEach(() => {
jest.clearAllMocks()
jest.restoreAllMocks()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Question: why restoreAllMocks?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

clearAllMocks wasn't properly resetting the mocked functions in between tests. Seems like a known issue jestjs/jest#7136

@mliu mliu merged commit 761a33b into develop Aug 17, 2023
2 checks passed
@mliu mliu deleted the allow-separate-metadata-uploads branch August 17, 2023 03:15
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.

None yet

2 participants