Skip to content

Commit

Permalink
Revert irrelevant change
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Jan 11, 2022
1 parent b5fce9a commit dcb0749
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion src/operations/set_trustline_flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function setTrustLineFlags(opts = {}) {
const attributes = {};

if (typeof opts.flags !== 'object' || Object.keys(opts.flags).length === 0) {
throw new Error('opts.flags must be an map of boolean flags to modify');
throw new Error('opts.flags must be a map of boolean flags to modify');
}

const mapping = {
Expand Down
13 changes: 0 additions & 13 deletions test/unit/operation_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2425,19 +2425,6 @@ describe('Operation', function() {
StellarBase.Operation.setTrustLineFlags({});
}).to.throw();
});
it('fails with a muxed account trustor', function() {
expect(() => {
const mAddress =
'MA7QYNF7SOWQ3GLR2BGMZEHXAVIRZA4KVWLTJJFC7MGXUA74P7UJUAAAAAAAAAAAAGZFQ';
StellarBase.Operation.setTrustLineFlags({
trustor: mAddress,
asset: StellarBase.Asset.native(),
flags: {
clawbackEnabled: false
}
});
}).to.throw();
});
});

describe('liquidityPoolDeposit()', function() {
Expand Down

0 comments on commit dcb0749

Please sign in to comment.