mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
Remove walletLocator and walletSize from settings
This commit is contained in:
@@ -138,18 +138,12 @@ describe('RippleAPI', function() {
|
||||
_.partial(checkResult, responses.prepareSettings.flagClear, 'prepare'));
|
||||
});
|
||||
|
||||
it('prepareSettings - string field clear', function() {
|
||||
const settings = {walletLocator: null};
|
||||
return this.api.prepareSettings(address, settings, instructions).then(
|
||||
_.partial(checkResult, responses.prepareSettings.fieldClear, 'prepare'));
|
||||
});
|
||||
|
||||
it('prepareSettings - integer field clear', function() {
|
||||
const settings = {walletSize: null};
|
||||
const settings = {transferRate: null};
|
||||
return this.api.prepareSettings(address, settings, instructions)
|
||||
.then(data => {
|
||||
assert(data);
|
||||
assert.strictEqual(JSON.parse(data.txJSON).WalletSize, 0);
|
||||
assert.strictEqual(JSON.parse(data.txJSON).TransferRate, 0);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
1
test/fixtures/responses/get-settings.json
vendored
1
test/fixtures/responses/get-settings.json
vendored
@@ -2,7 +2,6 @@
|
||||
"requireDestinationTag": true,
|
||||
"disallowIncomingXRP": true,
|
||||
"emailHash": "23463B99B62A72F26ED677CC556C44E8",
|
||||
"walletLocator": "00000000000000000000000000000000000000000000000000000000DEADBEEF",
|
||||
"domain": "example.com",
|
||||
"transferRate": 1.002
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user