fix: don't leak private postageStampId to public node

pull/5370/head
Attila Gazso 3 years ago committed by yann300
parent 527c021851
commit 324093fba6
  1. 3
      libs/remix-ui/publish-to-storage/src/lib/publishOnSwarm.tsx

@ -140,6 +140,9 @@ const hashFromResults = (results: UploadResult[]) => {
const uploadToBee = async (bee: Bee, postageStampId: string, content) => {
try {
if (bee.url === publicBeeNode.url) {
postageStampId = defaultPostageStampId
}
return await bee.uploadData(postageStampId, content)
} catch {
// ignore errors for now

Loading…
Cancel
Save