From b1d6d96e63355815548b833bcb2ead3eb65054cc Mon Sep 17 00:00:00 2001 From: jnicoulaud-ledger <102984500+jnicoulaud-ledger@users.noreply.github.com> Date: Mon, 21 Oct 2024 11:01:20 +0200 Subject: [PATCH] fix: fix ERC-20/ERC-721 descriptors (#65) fix a few outdated/invalid parameters --- ercs/calldata-erc20-tokens.json | 4 ++-- ercs/calldata-erc721-nfts.json | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ercs/calldata-erc20-tokens.json b/ercs/calldata-erc20-tokens.json index c6dc0dc4..675e780c 100644 --- a/ercs/calldata-erc20-tokens.json +++ b/ercs/calldata-erc20-tokens.json @@ -67,7 +67,7 @@ "label": "Amount", "format": "tokenAmount", "params": { - "tokenPath": "$.context.contract.address" + "tokenPath": "$.context.contract.deployments.[0].address" } } ], @@ -86,7 +86,7 @@ "label": "Amount", "format": "tokenAmount", "params": { - "tokenPath": "$.context.contract.address", + "tokenPath": "$.context.contract.deployments.[0].address", "threshold": "0x8000000000000000000000000000000000000000000000000000000000000000" } } diff --git a/ercs/calldata-erc721-nfts.json b/ercs/calldata-erc721-nfts.json index a3f589b5..8afcf8c4 100644 --- a/ercs/calldata-erc721-nfts.json +++ b/ercs/calldata-erc721-nfts.json @@ -136,15 +136,15 @@ "label": "Collection", "format": "addressName", "params": { - "type": "nft" + "types": ["collection"] } }, { "path": "_operator", "$ref": "$.display.definitions.operator" }, - { + { "path": "_approved", - "label": "Access rights", + "label": "Access rights", "format": "enum", - "$params": { "$ref": "$.metadata.enums.rights" } + "params": { "$ref": "$.metadata.enums.rights" } } ] }