Skip to content

Commit

Permalink
chore(contracts): Replacing an Attestation should revoke first and cr…
Browse files Browse the repository at this point in the history
…eate the new attestation later (#841)
  • Loading branch information
alainncls authored Nov 30, 2024
1 parent ef284ae commit 815892b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/src/AttestationRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ contract AttestationRegistry is RouterManager {
* @param attester the account address issuing the attestation
*/
function replace(bytes32 attestationId, AttestationPayload calldata attestationPayload, address attester) public {
attest(attestationPayload, attester);
revoke(attestationId);
attest(attestationPayload, attester);
bytes32 replacedBy = generateAttestationId(attestationIdCounter);
attestations[attestationId].replacedBy = replacedBy;

Expand Down

0 comments on commit 815892b

Please sign in to comment.