Skip to content

Commit b8c4d88

Browse files
committed
Make txHex optional for submitTransaction
Summary: ETH transactions has no notion of txHex Reviewers: arik, barath Reviewed By: barath Subscribers: ben Differential Revision: https://phabricator.bitgo.com/D6150
1 parent 9b05040 commit b8c4d88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bitgo",
3-
"version": "3.5.0",
3+
"version": "3.5.1",
44
"description": "BitGo Javascript SDK",
55
"main": "./src/index.js",
66
"keywords": [

src/v2/wallet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ Wallet.prototype.signTransaction = function(params, callback) {
558558
* @param callback
559559
*/
560560
Wallet.prototype.submitTransaction = function(params, callback) {
561-
common.validateParams(params, ['txHex'], ['otp'], callback);
561+
common.validateParams(params, [], ['otp', 'txHex'], callback);
562562
return this.bitgo.post(this.baseCoin.url('/wallet/' + this.id() + '/tx/send'))
563563
.send(params)
564564
.result()

0 commit comments

Comments
 (0)