Skip to content

Commit

Permalink
[NayNay] Fix Signing (#169)
Browse files Browse the repository at this point in the history
- updated signing to pull in the correct endpoint to be used
- removed a noisy log to the console

Co-authored-by: Nayyir Jutha <nayyir@entropy.xyz>
  • Loading branch information
rh0delta and rh0delta authored Jul 12, 2024
1 parent 614f9ec commit 545b311
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/common/masking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
4 changes: 2 additions & 2 deletions src/flows/sign/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 545b311

Please sign in to comment.