Skip to content

Commit

Permalink
chore: fix #1790 (#1877)
Browse files Browse the repository at this point in the history
* chore: lower case the sender address

* chore: fix the `buffer` error

* minor

* minor

* chore: vite config

* chore: vite config
  • Loading branch information
TwilightLogic authored Jun 13, 2024
1 parent 4e4e72b commit 8974ab0
Show file tree
Hide file tree
Showing 5 changed files with 479 additions and 520 deletions.
4 changes: 3 additions & 1 deletion infra/rooch-portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dependencies": {
"@emotion/cache": "11.10.5",
"@emotion/react": "11.10.6",
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@radix-ui/react-aspect-ratio": "^1.0.3",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-checkbox": "^1.0.4",
Expand Down Expand Up @@ -69,6 +70,7 @@
"postcss": "^8.4.33",
"tailwindcss": "^3.4.1",
"typescript": "^5.2.2",
"vite": "^5.0.8"
"vite": "^5.0.8",
"vite-plugin-node-polyfills": "^0.22.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,7 @@ export const TransactionsTable = () => {
<TableCell>
<div className="flex flex-col md:flex-row items-start md:items-center justify-start gap-1">
<span className="hover:no-underline text-blue-400 hover:text-blue-500 dark:text-blue-300 dark:hover:text-blue-200 transition-all cursor-pointer">
<p>
{formatAddress(
(tx.transaction.data as LedgerTxDataView1).sender.toUpperCase(),
)}
</p>
<p>{formatAddress((tx.transaction.data as LedgerTxDataView1).sender)}</p>
</span>
</div>
</TableCell>
Expand Down
4 changes: 2 additions & 2 deletions infra/rooch-portal/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import path from 'path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { nodePolyfills } from 'vite-plugin-node-polyfills'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [react(), nodePolyfills()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,8 @@
"rimraf": "^3.0.2",
"eslint-config-next": "13.2.4",
"eslint-import-resolver-alias": "1.1.2"
},
"resolutions": {
"esbuild": "^0.17.19"
}
}
Loading

0 comments on commit 8974ab0

Please sign in to comment.