Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graph add --merge-entities does not properly merge entities #1894

Open
YaroShkvorets opened this issue Jan 8, 2025 · 0 comments
Open

graph add --merge-entities does not properly merge entities #1894

YaroShkvorets opened this issue Jan 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@YaroShkvorets
Copy link
Collaborator

YaroShkvorets commented Jan 8, 2025

Probably related to #1839 ?

We have 2 mainnet contracts:
0xdAC17F958D2ee523a2206206994597C13D831ec7 - USDT with 10 events
0x514910771AF9Ca656af840dff83E8264EcF986CA - LINK with 2 events that already exist in USDT but different parameters

Trying to graph init on one contract and then graph add --merge-entities another.
Expected: USDT + LINK and LINK + USDT to be functionally the same
Getting:

  • LINK + USDT - works and merges entities with parameters successfully
  • USDT + LINK - works but entities are not merged

i.e. this works as expected:

graph init link link --from-contract=0x514910771AF9Ca656af840dff83E8264EcF986CA --protocol=ethereum --start-block=111 --contract-name=USDT --index-events  --network=mainnet
graph add 0xdAC17F958D2ee523a2206206994597C13D831ec7 --merge-entities

This does not:

graph init usdt usdt --from-contract=0xdAC17F958D2ee523a2206206994597C13D831ec7 --protocol=ethereum --start-block=222 --contract-name=USDT --index-events  --network=mainnet
graph add 0x514910771AF9Ca656af840dff83E8264EcF986CA --merge-entities
@YaroShkvorets YaroShkvorets added the bug Something isn't working label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant