mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
retrieve full signer objects to reuse anon mode address in own thread
This commit is contained in:
@@ -21,9 +21,9 @@ const useAnonMode = (postCid?: string) => {
|
||||
const signer = await account?.plebbit.createSigner();
|
||||
if (signer) {
|
||||
if (postCid) {
|
||||
setThreadSigner(postCid, { privateKey: signer.privateKey, address: signer.address });
|
||||
setThreadSigner(postCid, signer);
|
||||
} else {
|
||||
setAddressSigner({ privateKey: signer.privateKey, address: signer.address });
|
||||
setAddressSigner(signer);
|
||||
}
|
||||
}
|
||||
return signer;
|
||||
|
||||
Reference in New Issue
Block a user