-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
|
REACT_APP_ALCHEMY_API_KEY_2= |
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.
Maybe we can name the alchemy api key by chain?
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.
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 |
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.
Can we delete this part as it's commented? Or it will be used later?
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.
They can prefund on the first try. I will uncomment it.
@@ -305,11 +338,12 @@ describe('declareReceivablePaymentByReferenceId', () => { | |||
|
|||
describe('declareReceivablePaymentByTokenId', () => { | |||
beforeEach(() => { | |||
jest.clearAllMocks() | |||
jest.restoreAllMocks() |
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.
Question: why restoreAllMocks?
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.
clearAllMocks wasn't properly resetting the mocked functions in between tests. Seems like a known issue jestjs/jest#7136
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.