diff --git a/README.md b/README.md index 39e4dcf4d..92674441e 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,12 @@ The app is a React app built with [Next.js](https://nextjs.org) + TypeScript + CSS modules and will connect to Ocean remote components by default. +Prerequisites: + +- [Node.js](https://nodejs.org/en/) (required). Check the [.nvmrc](.nvmrc) file to make sure you are using the correct version of Node.js. +- [nvm](https://github.com/nvm-sh/nvm) (recommended). This is the recommend way to manage Node.js versions. +- [Git](https://git-scm.com/) is required to follow the instructions below. + To start local development: ```bash diff --git a/src/components/Asset/AssetContent/EditHistory.tsx b/src/components/Asset/AssetContent/EditHistory.tsx index 59d0172db..e6c7bcdcb 100644 --- a/src/components/Asset/AssetContent/EditHistory.tsx +++ b/src/components/Asset/AssetContent/EditHistory.tsx @@ -17,7 +17,6 @@ const getReceipts = gql` id nft { address - owner } tx timestamp diff --git a/src/components/Asset/Edit/EditMetadata.tsx b/src/components/Asset/Edit/EditMetadata.tsx index 0e71e429e..d7de68248 100644 --- a/src/components/Asset/Edit/EditMetadata.tsx +++ b/src/components/Asset/Edit/EditMetadata.tsx @@ -117,7 +117,11 @@ export default function Edit({ { type: values.files[0].type, index: 0, - url: values.files[0].url, + [values.files[0].type === 'ipfs' + ? 'hash' + : values.files[0].type === 'arweave' + ? 'transactionId' + : 'url']: values.files[0].url, method: 'GET' } ]