feat!: use guessTxSizeAndSign in multicall#1053
Conversation
| return unitIds; | ||
| }).length; | ||
|
|
||
| const { registeredValues: addedCPs } = await guessTxSizeAndSign({ |
There was a problem hiding this comment.
can addedCPs ever be empty due to some error handling inside guessTxSizeAndSign?
I'm vary of this while becoming an infinite loop. Maybe it makes sense to exit with error if addedCPs is empty?
There was a problem hiding this comment.
addedCPs can't be empty cause the only way it can is if sliceIndex is 0 but there is a check in guessTxSizeAndSign that if it's 0 then fail. Basically the idea is that tx can fail for two main reasons: something is wrong with the tx or it's too big. If it's too big - we will make it smaller until it's just 0 - then we actually fail cause we can be certain that the size of the tx is not an issue - something else is
No description provided.