Skip to content

Commit

Permalink
Merge pull request #107 from shawakash/address_eth
Browse files Browse the repository at this point in the history
bug: fix the address accept type of the ethereum to private
  • Loading branch information
shawakash authored Feb 15, 2024
2 parents 6d2b2f1 + 9aeb800 commit 0f7c365
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/web/app/txn/send/components/txnSend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function PaymentCard({
}).then((res) => res.json());
toast({
title: `Transaction Successful`,
description: `Transaction Hash: ${response.signature.transaction.signatures[0]}`,
description: network == Network.Sol ? `Transaction Hash: ${response.signature.transaction.signatures[0]}` : `Transaction Hash: ${response.hash}`,
});
setIsLoading(false);
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions packages/common/src/validations/addressValid.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { z } from "zod";
import { isEthereumAddress, isSolanaAddress } from "../constant";
import { isEthereumPrivateKey, isSolanaAddress } from "../constant";

export const AddressForm = z.object({
eth: z.string().refine(isEthereumAddress, {
eth: z.string().refine(isEthereumPrivateKey, {
message: "Invalid Ethereum address",
}),
sol: z.string().refine(isSolanaAddress, {
Expand Down

0 comments on commit 0f7c365

Please sign in to comment.