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

SEC-526 #118

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from
Open

SEC-526 #118

wants to merge 7 commits into from

Conversation

abdulazeem-tk4vr
Copy link
Member

@abdulazeem-tk4vr abdulazeem-tk4vr commented Dec 26, 2024

console.log('Execution Shard Key in receipt does not match the calculated key from transaction data.')
}
if (nestedCountersInstance) nestedCountersInstance.countEvent('receipt', 'executionShardKey mismatch')
executionShardKey = extractedKey

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if fallback should be to the key which we received in receipt. Just in case our extraction logic has some flaws. We can discuss with design team.

return response.accounts
}

throw new Error(`Secure account data not found on node ${node.ip}`)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add some logs here?if there is any error in response from /secure_accounts api, we lose the error message.

@@ -0,0 +1,32 @@
import * as fs from 'fs'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be written as unit test? what's the purpose of the file?
Also, filePath is hardcoded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants