Skip to content

Commit

Permalink
fix: Argent Mobile signature
Browse files Browse the repository at this point in the history
  • Loading branch information
BastienFaivre committed Dec 26, 2024
1 parent 20b41e6 commit f6804b0
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ const App: React.FC = () => {
const [verificationResult, setVerificationResult] = useState<boolean | null>(null);
const [verificationError, setVerificationError] = useState<string | null>(null);

const [temp, setTemp] = useState<string[] | null>(null);

const connectButtonClicked = async () => {
setConnectIsLoading(true);
try {
Expand Down Expand Up @@ -90,7 +88,6 @@ const App: React.FC = () => {
setCopied([false, false]);
setSignatures([{ r: BigInt(sig[0]), s: BigInt(sig[1]) } as WeierstrassSignatureType]);
} else {
setTemp(sig);
// Likely Argent signature
const numberOfSignatures = sig[0];
if (sig.length === 1 + 4 * numberOfSignatures) {
Expand Down Expand Up @@ -186,16 +183,6 @@ const App: React.FC = () => {
<OpenInNewIcon />
</IconButton>
</Stack>
{temp && (
<Stack direction="column" spacing={1} alignItems="center">
<Typography variant="caption">Temp</Typography>
{temp.map((item, index) => (
<Typography key={index} variant="caption">
{BigInt(item).toString(16).length > 30 ? `${BigInt(item).toString(16).slice(0, 5)}...${BigInt(item).toString(16).slice(-5)}` : BigInt(item).toString(16)}
</Typography>
))}
</Stack>
)}
<AceEditor
mode="json"
name="typed-data-editor"
Expand Down

0 comments on commit f6804b0

Please sign in to comment.