Gasless publish flow (#216)

* gasless publish flow

* switch to publishing one at a time for now to support gasless
This commit is contained in:
Joaquim Verges
2022-06-29 15:18:24 -07:00
committed by GitHub
parent 9e706d0e86
commit 1dc0490070
7 changed files with 48 additions and 26 deletions
+6 -1
View File
@@ -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;
});
}