Skip to content

Commit c275174

Browse files
committed
Fix RegularKey requirement in SetRegularKey transaction format
1 parent af4ed29 commit c275174

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/js/ripple/binformat.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ Object.keys(FIELDS_MAP).forEach(function(k1) {
204204
});
205205
});
206206

207-
208207
var REQUIRED = exports.REQUIRED = 0,
209208
OPTIONAL = exports.OPTIONAL = 1,
210209
DEFAULT = exports.DEFAULT = 2;
@@ -245,7 +244,7 @@ exports.tx = {
245244
[ 'OfferSequence' , REQUIRED ]
246245
]),
247246
SetRegularKey: [5].concat(base, [
248-
[ 'RegularKey' , REQUIRED ]
247+
[ 'RegularKey' , OPTIONAL ]
249248
]),
250249
Payment: [0].concat(base, [
251250
[ 'Destination' , REQUIRED ],

0 commit comments

Comments
 (0)