Skip to content

Commit

Permalink
fix: remove eip-681 standard from address qr code
Browse files Browse the repository at this point in the history
  • Loading branch information
williamluke4 committed Oct 24, 2023
1 parent 4192127 commit c9a9c78
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/qr-code/address-qr-code.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import dynamic from "next/dynamic";
import { buildEthUrl } from "~/lib/eth-url-parser";
const QRCode = dynamic(() => import("react-qr-code"), {
ssr: false,
});
Expand All @@ -14,11 +13,8 @@ const AddressQRCode = ({
className?: string;
size?: number;
}) => {
const uri = buildEthUrl({
target_address: address,
});
return (
<QRCode id={id} className={className} value={uri} size={size ?? 128} />
<QRCode id={id} className={className} value={address} size={size ?? 128} />
);
};
export default AddressQRCode;

1 comment on commit c9a9c78

@vercel
Copy link

@vercel vercel bot commented on c9a9c78 Oct 24, 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.