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

Indicate encrypted transactions in TX lists #505

Merged
merged 1 commit into from Jun 13, 2023

Conversation

csillag
Copy link
Contributor

@csillag csillag commented Jun 12, 2023

As per https://app.clickup.com/t/861mx1bew and https://app.clickup.com/t/861mx1kwu

For testing, look for block 411186 on Sapphire testnet, or the account 0x6fA03516728d4a483578D63ea124C4Ec4A00e2bB

@github-actions
Copy link

github-actions bot commented Jun 12, 2023

Deployed to Cloudflare Pages

Latest commit: b03234657d21bf6ecec76ca760f9ee9c64e1f7e9
Status:✅ Deploy successful!
Preview URL: https://bc017a08.oasis-explorer.pages.dev

@csillag csillag force-pushed the csillag/indicate-encryption branch 2 times, most recently from 3aa9803 to 911931c Compare June 13, 2023 08:04
@csillag
Copy link
Contributor Author

csillag commented Jun 13, 2023

Visuals validated by @donouwens

package.json Outdated Show resolved Hide resolved
@csillag csillag force-pushed the csillag/indicate-encryption branch from 911931c to a12e292 Compare June 13, 2023 08:36
@csillag csillag requested a review from buberdds June 13, 2023 08:36
src/types/layers.ts Outdated Show resolved Hide resolved
@csillag csillag force-pushed the csillag/indicate-encryption branch from a12e292 to b032346 Compare June 13, 2023 08:39
@csillag csillag merged commit a1d7514 into master Jun 13, 2023
6 checks passed
@csillag csillag deleted the csillag/indicate-encryption branch June 13, 2023 08:42
@@ -57,3 +57,7 @@ export function getEthAccountAddress(preimage: AddressPreimage | undefined): str
// We need to convert from base64 to hex, add the prefix, and convert to checksum address
return toChecksumAddress(`0x${Buffer.from(preimage.address_data, 'base64').toString('hex')}`)
}

export function uniq<T>(input: T[] | undefined): T[] {
return input === undefined ? [] : [...new Set(input)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure we need this function, but Ok. [...new Set(undefined)] will return an empty array anyway

Comment on lines +72 to +74
...(canHaveEncryption
? [{ content: (<LockIcon htmlColor={COLORS.grayMedium} />) as unknown as string }]
: []), // The table does support widgets in the column headers, but the TS definition is unaware of that.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Table does not support it too well

key={column.content}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that could be improved. (By generating the key using the index, or something similar.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants