Skip to content

Commit

Permalink
fix: fix name discrepancy between abis
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyar committed Feb 5, 2024
1 parent 07187c0 commit a454871
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion subgraphs/venus/src/mappings/vToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
MintBehalf,
Redeem,
RepayBorrow,
} from '../../generated/templates/VTokenUpdatedEvents/VTokenUpdatedEvents';
} from '../../generated/templates/VTokenUpdatedEvents/VToken';
import { DUST_THRESHOLD, oneBigInt, zeroBigInt32 } from '../constants';
import {
createBorrowEvent,
Expand Down
4 changes: 2 additions & 2 deletions subgraphs/venus/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ templates:
kind: ethereum/contract
network: {{ network }}
source:
abi: VTokenUpdatedEvents
abi: VToken
mapping:
kind: ethereum/events
apiVersion: 0.0.5
Expand All @@ -140,7 +140,7 @@ templates:
- Market
- VTokenInfo
abis:
- name: VTokenUpdatedEvents
- name: VToken
file: ../../node_modules/@venusprotocol/venus-protocol/artifacts/contracts/Tokens/VTokens/VBep20.sol/VBep20.json
eventHandlers:
- event: Mint(address,uint256,uint256,uint256)
Expand Down
2 changes: 1 addition & 1 deletion subgraphs/venus/tests/VToken/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
MintBehalf as MintBehalfEvent,
Mint as MintEvent,
Redeem as RedeemEvent,
} from '../../generated/templates/VTokenUpdatedEvents/VTokenUpdatedEvents';
} from '../../generated/templates/VTokenUpdatedEvents/VToken';

export const createMarketListedEvent = (vTokenAddress: Address): MarketListedEvent => {
const event = changetype<MarketListedEvent>(newMockEvent());
Expand Down

0 comments on commit a454871

Please sign in to comment.