Make sure from is included in txData
This commit is contained in:
parent
2a7b3aecc3
commit
11747c6cf4
@ -74,6 +74,9 @@ export const marshaller = {
|
||||
return tx;
|
||||
},
|
||||
marshalTxData(txData: Partial<TxData>): Partial<TxDataRPC> {
|
||||
if (_.isUndefined(txData.from)) {
|
||||
throw new Error(`txData must include valid 'from' value.`);
|
||||
}
|
||||
const callTxDataBase = {
|
||||
...txData,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user