diff --git a/package.json b/package.json index cf9164ca..dbe67b9c 100644 --- a/package.json +++ b/package.json @@ -37,8 +37,8 @@ "@material-ui/icons": "^4.11.2", "@metamask/post-message-stream": "^4.0.0", "@psychedelic/browser-rpc": "2.1.0", - "@psychedelic/dab-js": "1.5.0-beta.1", - "@psychedelic/plug-controller": "0.24.6", + "@psychedelic/dab-js": "1.5.0-beta.4", + "@psychedelic/plug-controller": "0.24.7", "@psychedelic/plug-inpage-provider": "^2.3.1", "@reduxjs/toolkit": "^1.6.0", "advanced-css-reset": "^1.2.2", diff --git a/source/views/Extension/Views/AddNFT/components/CustomNFT.jsx b/source/views/Extension/Views/AddNFT/components/CustomNFT.jsx index 47b55f35..57e524f4 100644 --- a/source/views/Extension/Views/AddNFT/components/CustomNFT.jsx +++ b/source/views/Extension/Views/AddNFT/components/CustomNFT.jsx @@ -11,18 +11,19 @@ import { Dialog, Select, } from '@components'; +import { standards } from '@psychedelic/dab-js'; import { validateCanisterId } from '@shared/utils/ids'; import { HANDLER_TYPES, sendMessage } from '@background/Keyring'; import extension from 'extensionizer'; import { customTokensUrl } from '@shared/constants/urls'; import useStyles from '../styles'; -const FUNGIBLE_STANDARDS = { DIP721v2: 'DIP721v2', }; +const FUNGIBLE_STANDARDS = { DIP721: standards.NFT.dip721, }; const CustomNFT = ({ handleChangeSelectedNFT }) => { const { t } = useTranslation(); const [canisterId, setCanisterId] = useState(''); - const [standard, setStandard] = useState(FUNGIBLE_STANDARDS.DIP721v2); + const [standard, setStandard] = useState(FUNGIBLE_STANDARDS.DIP721); const [invalidToken, setInvalidToken] = useState(null); const [tokenError, setTokenError] = useState(''); const [loading, setLoading] = useState(false); diff --git a/yarn.lock b/yarn.lock index 6f4d2578..4956ce90 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1773,10 +1773,10 @@ axios "^0.24.0" cross-fetch "^3.1.4" -"@psychedelic/dab-js@1.5.0-beta.1": - version "1.5.0-beta.1" - resolved "https://npm.pkg.github.com/download/@Psychedelic/dab-js/1.5.0-beta.1/306e2bb10491927995a3a22f25cd2ca9fd40990e#306e2bb10491927995a3a22f25cd2ca9fd40990e" - integrity sha512-p7GEh++Fv8U1SIYdqjxLLNy3I8fjoEF+lrXsHHKxcFuKpINxWkfWmUxLnjS6rytY+VuovrDEISFD4Tz0QHD2DQ== +"@psychedelic/dab-js@1.5.0-beta.4": + version "1.5.0-beta.4" + resolved "https://npm.pkg.github.com/download/@Psychedelic/dab-js/1.5.0-beta.4/efd377970c28a917a93e933a96cbf0013d3c5a61#efd377970c28a917a93e933a96cbf0013d3c5a61" + integrity sha512-A5AKfXUyu7OLJwyv9hT7dVp6zZ01F/QKnLCu4yc7/KpbxQ8V7CvVYp6Jap5Ig06tGYz/XJu2HDLMUxrrIogWxg== dependencies: "@dfinity/agent" "0.9.3" "@dfinity/candid" "0.9.3" @@ -1787,17 +1787,17 @@ cross-fetch "^3.1.4" crypto-js "^4.1.1" -"@psychedelic/plug-controller@0.24.6": - version "0.24.6" - resolved "https://npm.pkg.github.com/download/@Psychedelic/plug-controller/0.24.6/ffee2559f647411b209f465b1673fb726cf547c3#ffee2559f647411b209f465b1673fb726cf547c3" - integrity sha512-q1rsMblELr73BWnw/JBDWie6KAz46CoCVi+aBClLgf/AIcCZY4UbDlscrnGTqKe5bmSuLrJ6h0ZmmVZaY5Ob4w== +"@psychedelic/plug-controller@0.24.7": + version "0.24.7" + resolved "https://npm.pkg.github.com/download/@Psychedelic/plug-controller/0.24.7/425f18572dbee242d684c10ee27bb8d4123e2e2b#425f18572dbee242d684c10ee27bb8d4123e2e2b" + integrity sha512-1cTI2wUXWo/U1KB62HB8DVje+wEVZDb6CeiNRJ7pfKd7knJvDhVbKCt4ui3TdRo9z+zp46dOrEaBNeRoDQIXqA== dependencies: "@dfinity/agent" "0.9.3" "@dfinity/candid" "0.9.3" "@dfinity/identity" "0.9.3" "@dfinity/principal" "0.9.3" "@psychedelic/cap-js" "0.0.7" - "@psychedelic/dab-js" "1.5.0-beta.1" + "@psychedelic/dab-js" "1.5.0-beta.4" "@types/secp256k1" "^4.0.3" axios "^0.21.1" babel-jest "^25.5.1"