Commit c30fe532 authored by tom's avatar tom

[skip ci] update eip7702 texts

parent 88107826
...@@ -40,7 +40,7 @@ const ContractDetails = ({ addressHash, channel, mainContractQuery }: Props) => ...@@ -40,7 +40,7 @@ const ContractDetails = ({ addressHash, channel, mainContractQuery }: Props) =>
const addressInfo = queryClient.getQueryData<AddressInfo>(getResourceKey('address', { pathParams: { hash: addressHash } })); const addressInfo = queryClient.getQueryData<AddressInfo>(getResourceKey('address', { pathParams: { hash: addressHash } }));
const sourceItems: Array<AddressImplementation> = React.useMemo(() => { const sourceItems: Array<AddressImplementation> = React.useMemo(() => {
const currentAddressDefaultName = addressInfo?.proxy_type === 'eip7702' ? 'Delegate address' : 'Current contract'; const currentAddressDefaultName = addressInfo?.proxy_type === 'eip7702' ? 'Current address' : 'Current contract';
const currentAddressItem = { address: addressHash, name: addressInfo?.name || currentAddressDefaultName }; const currentAddressItem = { address: addressHash, name: addressInfo?.name || currentAddressDefaultName };
if (!addressInfo || !addressInfo.implementations || addressInfo.implementations.length === 0) { if (!addressInfo || !addressInfo.implementations || addressInfo.implementations.length === 0) {
return [ currentAddressItem ]; return [ currentAddressItem ];
......
...@@ -16,7 +16,7 @@ const AddressImplementations = ({ data, isLoading, proxyType }: Props) => { ...@@ -16,7 +16,7 @@ const AddressImplementations = ({ data, isLoading, proxyType }: Props) => {
const hasManyItems = data.length > 1; const hasManyItems = data.length > 1;
const [ hasScroll, setHasScroll ] = React.useState(false); const [ hasScroll, setHasScroll ] = React.useState(false);
const text = proxyType === 'eip7702' ? 'Delegate address' : `Implementation${ hasManyItems ? 's' : '' }`; const text = proxyType === 'eip7702' ? 'Delegated to' : `Implementation${ hasManyItems ? 's' : '' }`;
const hint = proxyType === 'eip7702' ? const hint = proxyType === 'eip7702' ?
'Account\'s executable code address' : 'Account\'s executable code address' :
`Implementation${ hasManyItems ? 's' : '' } address${ hasManyItems ? 'es' : '' } of the proxy contract`; `Implementation${ hasManyItems ? 's' : '' } address${ hasManyItems ? 'es' : '' } of the proxy contract`;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment