From 545b311cca2f07c22cfb8dac121bff40e9943350 Mon Sep 17 00:00:00 2001 From: Nayyir Jutha Date: Fri, 12 Jul 2024 13:20:40 -0400 Subject: [PATCH] [NayNay] Fix Signing (#169) - updated signing to pull in the correct endpoint to be used - removed a noisy log to the console Co-authored-by: Nayyir Jutha --- src/common/masking.ts | 2 -- src/flows/sign/index.ts | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/common/masking.ts b/src/common/masking.ts index 34ba7ac0..4118ddb8 100644 --- a/src/common/masking.ts +++ b/src/common/masking.ts @@ -17,8 +17,6 @@ export function maskPayload (payload: any): any { // maskJSONFields doesn't handle nested objects very well so we'll // need to recursively walk to object and mask them one by one for (const [property, value] of Object.entries(clonedPayload)) { - console.log(property, typeof value); - if (value && typeof value === 'object') { if (Object.keys(clonedPayload[property]).filter(key => isNaN(parseInt(key))).length === 0) { const reconstructedUintArr: number[] = Object.values(clonedPayload[property]) diff --git a/src/flows/sign/index.ts b/src/flows/sign/index.ts index 64ec78dc..d5371692 100644 --- a/src/flows/sign/index.ts +++ b/src/flows/sign/index.ts @@ -64,9 +64,9 @@ async function signWithAdaptersInOrder (entropy, msg?: string, signingAttempts = } } -export async function sign ({ accounts, endpoints, selectedAccount: selectedAccountAddress }, options, logger: EntropyLogger) { +export async function sign ({ accounts, selectedAccount: selectedAccountAddress }, options, logger: EntropyLogger) { const FLOW_CONTEXT = 'SIGN' - const endpoint = endpoints[options.ENDPOINT] + const { endpoint } = options const actionChoice = await inquirer.prompt([ { type: "list",