From 99f17a940e94484f0a0c5e28fafa07ccc346d2b9 Mon Sep 17 00:00:00 2001 From: Vibhav Sharma <40585900+Vib-UX@users.noreply.github.com> Date: Wed, 14 Aug 2024 21:03:12 +0530 Subject: [PATCH] fix: attestation with private-data `dataRoot` deprecated As per the updated config we use `privateData` instead of `dataRoot` in schemaEncoder reference --> https://base-sepolia.easscan.org/schema/view/0x20351f973fdec1478924c89dfa533d8f872defa108d9c3c6512267d7e7e5dbc2 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6343be1..f6ac82d 100644 --- a/README.md +++ b/README.md @@ -665,7 +665,7 @@ const fullTree = privateData.getFullTree(); // Create an attestation with the Merkle root const schemaEncoder = new SchemaEncoder('bytes32 privateData'); -const encodedData = schemaEncoder.encodeData([{ name: 'dataRoot', value: fullTree.root, type: 'bytes32' }]); +const encodedData = schemaEncoder.encodeData([{ name: 'privateData', value: fullTree.root, type: 'bytes32' }]); // Private data schema const schemaUID = '0x20351f973fdec1478924c89dfa533d8f872defa108d9c3c6512267d7e7e5dbc2';