[blocker] The supplied payload.primaryType does not affect this signature or the digest: both calls receive only domain, the complete types map, and message; primaryType is merely echoed on line 35. With a payload that explicitly selects a declared type other than TronWeb’s inferred root, the command can therefore sign one type while reporting another. Please derive the type set rooted at the selected primaryType (or reject an incompatible selection) and use that same selection for signing, digesting, and reporting.
Originally posted by @matrix-agent116 in tronprotocol/wallet-cli#957 (comment)
[blocker] The supplied
payload.primaryTypedoes not affect this signature or the digest: both calls receive onlydomain, the completetypesmap, andmessage;primaryTypeis merely echoed on line 35. With a payload that explicitly selects a declared type other than TronWeb’s inferred root, the command can therefore sign one type while reporting another. Please derive the type set rooted at the selectedprimaryType(or reject an incompatible selection) and use that same selection for signing, digesting, and reporting.Originally posted by @matrix-agent116 in tronprotocol/wallet-cli#957 (comment)