Closed bee344 closed 4 months ago
aren't some tests going to fail since they are not considering the new inputs?
For example, this one: https://github.com/paritytech/txwrapper-core/blob/6c96ef9b1f60ba54de5b017cc8c386d841ab4fe0/packages/txwrapper-dev/src/jest-helpers/itHasCorrectBaseTxInfo.ts#L9
itHasCorrectBaseTxInfo
@IkerAlus I didn't change the TEST_BASE_TX_INFO
, just added the mode
and metadataHash
for the createSigningPayload
test, so it won't affect the others. And that helper wasn't used in those test to begin with, so it's fine. If you consider it should be added, it can be done, but as both mode
and metadataHash
are optional, I don't see the value in checking those fields for every case.
When constructing the
SigningPayload
neithermode
normetadataHash
were taken into account, which in turn caused those to be defaulted tomode = 0
andmetadataHash = 0x00
. This wasn't detected at first because most txs don't use those fields, but it will cause troubles eventually.