feat: improve contract error message#5587
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 4267421 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@greptile review this pr |
Greptile SummaryThis PR introduces a contract-error decoding pipeline that intercepts viem
Confidence Score: 4/5The decoding and notification logic is correct, but ContractErrorNotice (a block-level component with interactive buttons) is passed as description and rendered inside a p tag in Notice, creating invalid HTML nesting. The Notice component wraps its description prop in a p tag. Before this PR, description was always a string; this PR is the first to pass a complex ReactElement containing div and interactive buttons. The resulting p>div>button DOM structure violates HTML5 content models and ARIA semantics. Changing the wrapper to div would fix it without touching any other logic. apps/evm/src/components/Notice/index.tsx — the description wrapper element should be div rather than p to accommodate block-level ReactElement descriptions. Important Files Changed
Reviews (5): Last reviewed commit: "feat: support blur on other tooltip" | Re-trigger Greptile |
|
@greptile review again |
| // Venus — core lending | ||
| isolatedPoolComptrollerAbi, | ||
| legacyPoolComptrollerAbi, | ||
| vBep20Abi, | ||
| vBnbAbi, | ||
| vaiControllerAbi, | ||
| // Venus — extras | ||
| primeAbi, | ||
| nativeTokenGatewayAbi, | ||
| rewardsDistributorAbi, | ||
| swapRouterAbi, | ||
| leverageManagerAbi, | ||
| relativePositionManagerAbi, | ||
| pendlePtVaultAbi, | ||
| resilientOracleAbi, | ||
| // Venus — cross-chain / governance | ||
| xvsTokenOmnichainAbi, | ||
| xVSProxyOFTDestAbi, | ||
| xVSProxyOFTSrcAbi, | ||
| omnichainGovernanceExecutorAbi, | ||
| // Third-party — smart accounts | ||
| nexusAbi, | ||
| nexusAccountFactoryAbi, | ||
| nexusBoostrapAbi, |
There was a problem hiding this comment.
We can also add these:
venusLensAbi
PoolLensAbi
PoolRegistryAbi
vaiVaultAbi
xvsVaultAbi
xvsStoreAbi
GovernorBravoDelegateAbi
xvsVestingAbi
vrtConverterAbi
maximillionAbi
multicall3Abi
vTreasuryAbi
vTreasuryV8Abi
zyFiVaultAbi
aaveUiPoolDataProviderAbi
aavePoolAddressesProviderAbi
aaveV3PoolAbi
jumpRateModelAbi
JumpRateModelV2Abi
erc20Abi
xvsAbi
vaiAbi
vrtAbi
pancakePairV2Abi
swapRouterV2Abi
|
@greptile review again |
|
@greptile review again |
| 'relative rounded-lg border backdrop-blur-lg transition-colors overflow-hidden', | ||
| (variant === 'info' || variant === 'loading') && 'bg-blue/10 border-lightGrey', | ||
| variant === 'error' && 'bg-red/10 border-red', | ||
| variant === 'success' && 'bg-green/10 border-green', | ||
| variant === 'warning' && 'bg-orange/10 border-orange', |
There was a problem hiding this comment.
For some reason, the background blur is displayed after a delay for me on Chrome.
https://github.com/user-attachments/assets/632d742d-911f-4b91-aec1-28e01c70fae3
https://github.com/user-attachments/assets/3c5a26a8-712b-4a8f-a674-3fdb143697a0
I'm not sure what's causing this, as the transition-color class should not affect it.
Jira ticket(s)
VPD-1166
Changes
needed at call site
tailwind override)
chip, copy/show-raw buttons