From dd29e6052be9427f4217191d956bc24514e35541 Mon Sep 17 00:00:00 2001 From: Jawad Tariq Date: Thu, 28 Dec 2023 16:42:27 -0500 Subject: [PATCH] fix: compressedPublicKey instead of publicKey Signed-off-by: Jawad Tariq --- scripts/deploy-topos-core.ts | 2 +- scripts/register-subnet.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deploy-topos-core.ts b/scripts/deploy-topos-core.ts index 689dc14..58b0a31 100644 --- a/scripts/deploy-topos-core.ts +++ b/scripts/deploy-topos-core.ts @@ -54,7 +54,7 @@ const main = async function (...args: string[]) { adminThreshold ) - const sequencerPublicKey = sequencerWallet.signingKey.publicKey + const sequencerPublicKey = sequencerWallet.signingKey.compressedPublicKey const subnetId = sanitizeHexString(sequencerPublicKey.substring(4)) await setSubnetId(toposCoreConnectedToSequencer, subnetId) diff --git a/scripts/register-subnet.ts b/scripts/register-subnet.ts index 1ec2558..cdd223f 100644 --- a/scripts/register-subnet.ts +++ b/scripts/register-subnet.ts @@ -75,7 +75,7 @@ const main = async function (...args: string[]) { } const sequencerWallet = new Wallet(sequencerPrivateKey, provider) - const sequencerPublicKey = sequencerWallet.signingKey.publicKey + const sequencerPublicKey = sequencerWallet.signingKey.compressedPublicKey const subnetId = sanitizeHexString(sequencerPublicKey.substring(4))