xrpl.js 2.0: address feedback, fix many TODOs

This commit is contained in:
mDuo13
2021-10-19 18:55:06 -07:00
parent e70926c758
commit 7cff4596cc
16 changed files with 154 additions and 106 deletions

View File

@@ -6,9 +6,6 @@
if (typeof module !== "undefined") {
// gotta use var here because const/let are block-scoped to the if statement.
var xrpl = require('xrpl')
} else {
// TODO: remove when webpack is fixed
var xrpl = ripple;
}
// Connect ---------------------------------------------------------------------
@@ -54,8 +51,8 @@ async function main() {
"Domain": "6578616D706C652E636F6D", // "example.com"
"SetFlag": 2 // enable Require Auth so we can't use trust lines that users
// make to the hot address, even by accident.
//"Flags": (api.txFlags.AccountSet.DisallowXRP |
// api.txFlags.AccountSet.RequireDestTag)
//"Flags": (api.AccountSetAsfFlags.asfDisallowXRP |
// api.AccountSetAsfFlags.asfRequireDestTag)
}
const hst_prepared = await api.autofill(hot_settings_tx)