Skip to content

Commit

Permalink
[xc_admin_frontend] parse evm execute (#1253)
Browse files Browse the repository at this point in the history
* parse evm execute

* add copy
  • Loading branch information
Dev Kalra authored Jan 29, 2024
1 parent f3ad917 commit f7624d6
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
AptosAuthorizeUpgradeContract,
AuthorizeGovernanceDataSourceTransfer,
CosmosUpgradeContract,
EvmExecute,
EvmSetWormholeAddress,
EvmUpgradeContract,
ExecutePostedVaa,
Expand Down Expand Up @@ -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>
)
}

1 comment on commit f7624d6

@vercel
Copy link

@vercel vercel bot commented on f7624d6 Jan 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

xc-admin-frontend – ./

xc-admin-frontend-pyth-web.vercel.app
xc-admin-frontend.vercel.app
xc-admin-frontend-git-main-pyth-web.vercel.app

Please sign in to comment.