[xc_admin_frontend] parse evm execute (#1253)

* parse evm execute

* add copy
This commit is contained in:
Dev Kalra 2024-01-29 21:55:19 +05:30 committed by GitHub
parent f3ad917c6b
commit f7624d666f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 22 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import {
AptosAuthorizeUpgradeContract,
AuthorizeGovernanceDataSourceTransfer,
CosmosUpgradeContract,
EvmExecute,
EvmSetWormholeAddress,
EvmUpgradeContract,
ExecutePostedVaa,
@ -395,6 +396,27 @@ export const WormholeInstructionView = ({
}
/>
)}
{governanceAction instanceof EvmExecute && (
<GovernanceInstructionView
instruction={governanceAction}
actionName={governanceAction.action}
content={
<div>
<div>
Executor Address:{' '}
<CopyPubkey pubkey={'0x' + governanceAction.executorAddress} />
</div>
<div>
Call Address:
<CopyPubkey pubkey={'0x' + governanceAction.callAddress} />
</div>
<div>Value: {governanceAction.value.toString()}</div>
<div>Call Data: {governanceAction.calldata}</div>
</div>
}
/>
)}
</div>
)
}