Skip to content

Commit

Permalink
Change formatting of event.type in api.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kaja-osojnik committed Jan 5, 2024
1 parent 14c1281 commit 3551722
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/oasis-nexus/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -699,11 +699,13 @@ export const useGetRuntimeEvents: typeof generated.useGetRuntimeEvents = (
events: data.events.map(event => {
const adjustedHash = event.eth_tx_hash ? `0x${event.eth_tx_hash}` : undefined
if (
event.type === 'accounts.transfer' ||
event.type === 'accounts.mint' ||
event.type === 'accounts.burn' ||
event.type === 'consensus_accounts.deposit' ||
event.type === 'consensus_accounts.withdraw'
event.type === RuntimeEventType.accountstransfer ||
event.type === RuntimeEventType.accountsmint ||
event.type === RuntimeEventType.accountsburn ||
event.type === RuntimeEventType.consensus_accountsdeposit ||
event.type === RuntimeEventType.consensus_accountswithdraw ||
event.type === RuntimeEventType.consensus_accountsdelegate ||
event.type === RuntimeEventType.consensus_accountsundelegate_done
) {
return {
...event,
Expand Down

0 comments on commit 3551722

Please sign in to comment.