Skip to content

Commit

Permalink
Update approve text (#313)
Browse files Browse the repository at this point in the history
* Update approve text

* Use fixed ephemeral account
  • Loading branch information
guibescos authored Dec 22, 2023
1 parent e0395a9 commit 41c1f2d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions frontend/pages/approve.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ const ApproveSplit: NextPage = () => {
const approveSplit = async () => {
if (stakeConnection && selectedStakeAccount && splitRequest) {
try {
const response = await fetch('/api/internal/create_ephemeral_account')
const ephemeralAccount = (await response.json()).publicKey
const ephemeralAccount = new PublicKey(
'5u9jTgPQnTGQH2qupkoHCQFweXn2kv7SzrvK9ouqUfYG'
)
await stakeConnection.acceptSplit(
selectedStakeAccount,
splitRequest.balance,
Expand All @@ -78,10 +79,6 @@ const ApproveSplit: NextPage = () => {
stakeAccounts !== undefined &&
stakeAccounts.length > 0 && (
<div>
<p className=" p-2 ">
Request a transfer of locked tokens to a new account
</p>

<select
style={{ color: 'black' }}
value={selectedStakeAccount?.address.toString()}
Expand Down

1 comment on commit 41c1f2d

@vercel
Copy link

@vercel vercel bot commented on 41c1f2d Dec 22, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.