argotorg / argotorg/sourcify

Verified address has mismatched metadata or source

Open
#2,227 5 comments 1 reaction 1 assignee Claimed by @manuelwedler View on GitHub
🪲 bug
Dominant language
TypeScript
Stars
949
Forks
542
Avg merge
2d 19h
Merged PRs (30d)
18

Description

See `0x000000000022D473030F116dDEE9F6B43aC78BA3` on chain 1.

The metadata.json has at least one source (`src/AllowanceTransfer.sol`) whose hash in the metadata differs from the source returned by the `sources` field response.

```diff
diff --git a/./AllowanceTransfer.sol b/tmp/set2.sol
index ddf3781..84edcde 100644
--- a/./AllowanceTransfer.sol
+++ b/tmp/set2.sol
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

-import {ERC20} from "solmate/src/tokens/ERC20.sol";
-import {SafeTransferLib} from "solmate/src/utils/SafeTransferLib.sol";
+import {ERC20} from "solmate/tokens/ERC20.sol";
+import {SafeTransferLib} from "solmate/utils/SafeTransferLib.sol";
import {PermitHash} from "./libraries/PermitHash.sol";
import {SignatureVerification} from "./libraries/SignatureVerification.sol";
import {EIP712} from "./EIP712.sol";
```

(the "plus" is the file whose hash is in the metadata object, which I retrieved via IPFS, and the "minus" is what Sourcify returns in the sources field)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.