diff --git a/client/src/App.jsx b/client/src/App.jsx
index 6630177..0af0a1f 100644
--- a/client/src/App.jsx
+++ b/client/src/App.jsx
@@ -121,9 +121,9 @@ function App() {
};
const fetchValidationPools = async () => {
- // TODO: Pagination
- // TODO: Memoization
- // TODO: Caching
+ // TODO: Pagination
+ // TODO: Memoization
+ // TODO: Caching
const count = await DAOContract.methods.validationPoolCount().call();
const promises = [];
dispatchValidationPool({ type: 'refresh' });
@@ -234,7 +234,7 @@ function App() {
).send({
from: account,
gas: 1000000,
- value: 100,
+ value: 10000,
});
}, [provider, DAO, account]);
@@ -274,10 +274,15 @@ function App() {
/* --------------------------- END UI ACTIONS ------------------------------------- */
/* -------------------------------------------------------------------------------- */
- const getAdressName = useCallback((address) => {
+ const getAddressName = useCallback((address) => {
const contractName = getContractNameByAddress(chainId, address);
if (contractName) return `${contractName} Contract`;
- return address;
+ const addressParts = [
+ address.slice(0, 7),
+
+ address.slice(address.length - 5),
+ ];
+ return addressParts.join('...');
}, [chainId]);
return (
@@ -355,8 +360,8 @@ function App() {
{posts.filter((x) => !!x).map((post) => (
{post.id.toString()} |
- {post.author} |
- {getAdressName(post.sender)} |
+ {getAddressName(post.author)} |
+ {getAddressName(post.sender)} |
|