Skip to content

Commit

Permalink
Merge pull request #2539 from CityOfZion/CU-86a12tgr6-2
Browse files Browse the repository at this point in the history
CU-86a12tgr6 - Hotfix - Webp vulnerability
  • Loading branch information
melanke authored Oct 10, 2023
2 parents 9f2839b + 23bb0e1 commit a42e5bc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/actions/transactionHistoryActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@ export async function computeN3Activity(
item.notifications[0]?.state[3]?.value,
)

if (imageResults?.data?.assets?.length) {
image = imageResults.data.assets[0].metadata.mediaUri
const result = imageResults?.data?.assets[0]

if (result && result.metadata.mediaType.includes('webp')) {
image = result.metadata.mediaUri
}
}
break
Expand All @@ -150,7 +152,7 @@ export async function computeN3Activity(
// check for gas claim
if (
invocation.metadata.scripthash ===
'0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5' &&
'0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5' &&
invocation.metadata.amount === 0
) {
invocation.type = 'CLAIM'
Expand Down

0 comments on commit a42e5bc

Please sign in to comment.