Gasless publish flow (#216)
* gasless publish flow * switch to publishing one at a time for now to support gasless
This commit is contained in:
@@ -91,7 +91,12 @@ export function usePublishMutation() {
|
||||
sdk && "getPublisher" in sdk,
|
||||
"sdk is not ready or does not support publishing",
|
||||
);
|
||||
return await (await sdk.getPublisher()).publishBatch(uris);
|
||||
// FIXME - can't call batch here because of a bug with multicall + gasless setup. Looping through the uris and calling publish one by one for now.
|
||||
const receipts = [];
|
||||
for (const uri of uris) {
|
||||
receipts.push(await sdk.getPublisher().publish(uri));
|
||||
}
|
||||
return receipts;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user