Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Fix typo Update factories.ts #2450

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/core/src/factories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const Ed25519PrivateKeyFactory = Factory.define<Uint8Array>(() => {
return ed25519.utils.randomPrivateKey();
});

const Ed25519PPublicKeyFactory = Factory.define<Uint8Array>(() => {
const Ed25519PublicKeyFactory = Factory.define<Uint8Array>(() => {
const privateKey = Ed25519PrivateKeyFactory.build();
return ed25519.getPublicKey(privateKey);
});
Expand Down Expand Up @@ -748,7 +748,7 @@ const UserNameProofFactory = Factory.define<protobufs.UserNameProof>(() => {

const SignerEventBodyFactory = Factory.define<protobufs.SignerEventBody>(() => {
return SignerEventBody.create({
key: Ed25519PPublicKeyFactory.build(),
key: Ed25519PublicKeyFactory.build(),
eventType: SignerEventType.ADD,
keyType: 1,
metadataType: 1,
Expand Down Expand Up @@ -830,7 +830,7 @@ export const Factories = {
EnsName: EnsNameFactory,
TransactionHash: TransactionHashFactory,
Ed25519PrivateKey: Ed25519PrivateKeyFactory,
Ed25519PPublicKey: Ed25519PPublicKeyFactory,
Ed25519PPublicKey: Ed25519PublicKeyFactory,
Ed25519Signer: Ed25519SignerFactory,
Ed25519Signature: Ed25519SignatureFactory,
Eip712Signer: Eip712SignerFactory,
Expand Down