Use msg.sender to Prevent Spoofed Attestations

use-msg-sender-to-prevent-spoofed-attestations · receipt-attestation · 188 B runtime · registry-info

scores

source

pragma solidity ^0.8.13;

contract LogOnlyAttestation {
    event Attest(address indexed sender, bytes32 indexed receiptHash);

    function attest(bytes32 receiptHash) external {
        emit Attest(msg.sender, receiptHash);
    }
}

published

published on testnet · 0x822FcD5f4e705FCa924B830042e215aA7bcd14E8 · tx 0xf961bb76df67569c… · tempo (42431) · testnet