Remove deprecated deriveAddress from Client (#1614)

* Removing deriveAddress and X from client

* Remove deriveAddress from derive.ts

* Remove linting exception for function lines
This commit is contained in:
Jackson Mills
2021-09-13 13:44:21 -07:00
committed by Mayukha Vadari
parent 29c0b84ad5
commit 1037e0da88
4 changed files with 5 additions and 12 deletions

View File

@@ -0,0 +1,26 @@
import { assert } from 'chai'
import { deriveXAddress } from 'xrpl-local'
describe('client.deriveXAddress', function () {
it('returns address for public key', function () {
assert.equal(
deriveXAddress({
publicKey:
'035332FBA71D705BD5D97014A833BE2BBB25BEFCD3506198E14AFEA241B98C2D06',
tag: false,
test: false,
}),
'XVZVpQj8YSVpNyiwXYSqvQoQqgBttTxAZwMcuJd4xteQHyt',
)
assert.equal(
deriveXAddress({
publicKey:
'035332FBA71D705BD5D97014A833BE2BBB25BEFCD3506198E14AFEA241B98C2D06',
tag: false,
test: true,
}),
'TVVrSWtmQQssgVcmoMBcFQZKKf56QscyWLKnUyiuZW8ALU4',
)
})
})