Skip to content

Commit

Permalink
fix: attestation with private-data dataRoot deprecated
Browse files Browse the repository at this point in the history
As per the updated config we use `privateData` instead of `dataRoot` in schemaEncoder

reference  --> https://base-sepolia.easscan.org/schema/view/0x20351f973fdec1478924c89dfa533d8f872defa108d9c3c6512267d7e7e5dbc2
  • Loading branch information
Vib-UX authored Aug 14, 2024
1 parent 330e559 commit 99f17a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 99f17a9

Please sign in to comment.