This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 561
Allow from field to be empty #110
Comments
Merged
Merged
Merged
so the msg validation allows the |
thanks, I think this fix should solve the issue with empty field With current main, I am unable to broadcast transaction. Is there any protobuf file to be updated? |
not to my knowledge. Should we just close this issue @thomas-nguy? |
yes this can be closed |
khoslaventures
added this to the
Milestone 1: Developer Usability and Testing milestone
Jun 23, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
System info:
MacOs
Steps to reproduce:
Some tools such as metamask or truffle does not set the field 'from' when sending a transaction. Instead it expects the value to be extracted from the signature.
( snippet from geth to extract sender address from signature
https://github.com/ethereum/go-ethereum/blob/master/core/types/transaction_signing.go#L131 )
However some antler handler such as the
EthAccountVerificationDecorator
expect the MsgEthereumTx field 'from' to be not empty or it will returns an error.I suggest either to modify the logic in the AnteHandler to extract the sender address from the signature if it is not in the message or always set the field
from
in the cosmos tx with the signature if it is not present in the eth tx.What do you think?
linked to issue
#79
The text was updated successfully, but these errors were encountered: