Closed maharifu closed 3 months ago
Great work, only some small remarks. There is a panic as well where there shouldn't be.
Regarding the panics, we already have other panics in the same functions, I just continued the same style. I think we can refactor them out and return an error instead. However, I don't see these functions being used in Begin or End blockers. Is this an issue or a false positive?
Great work, only some small remarks. There is a panic as well where there shouldn't be.
Regarding the panics, we already have other panics in the same functions, I just continued the same style. I think we can refactor them out and return an error instead. However, I don't see these functions being used in Begin or End blockers. Is this an issue or a false positive?
Unless I'm mistaken, the panic
statements are in hot code paths. Did a short scan and found one in the keccak256
for submit logic call and valset update for example, which are currently both used to calculate the bytes to sign.
It's interesting the CodeQL plugin didn't find these yet, but we definitely want them out. In theory, failing to pack the arguments should never happen, but better be safe then risk an app hash.
Great work, only some small remarks. There is a panic as well where there shouldn't be.
Regarding the panics, we already have other panics in the same functions, I just continued the same style. I think we can refactor them out and return an error instead. However, I don't see these functions being used in Begin or End blockers. Is this an issue or a false positive?
Unless I'm mistaken, the
panic
statements are in hot code paths. Did a short scan and found one in thekeccak256
for submit logic call and valset update for example, which are currently both used to calculate the bytes to sign.It's interesting the CodeQL plugin didn't find these yet, but we definitely want them out. In theory, failing to pack the arguments should never happen, but better be safe then risk an app hash.
You are right! I'll refactor that out and return an error instead.
Background
Include gas estimate and fee structure in turnstone messages hash.
Testing completed
Breaking changes