Skip to content

Commit

Permalink
fix file uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Jan 31, 2024
1 parent c002fad commit dacb4a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const main = async () => {
const name = await Name.from(Buffer.from(w3namePrivateKey, 'hex'))
const revision = Name.Revision.decode(Buffer.from(w3nameRevision, 'hex'))

const cid = await web3Storage.uploadFile(await filesFromPaths([source]))
const cid = await web3Storage.uploadFile((await filesFromPaths([source]))[0])
console.log(`Uploaded as ${cid}`)

const nextRevision = await Name.increment(revision, `/ipfs/${cid}`)
Expand Down

0 comments on commit dacb4a5

Please sign in to comment.