mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-29 16:45:49 +00:00
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:
committed by
Mayukha Vadari
parent
29c0b84ad5
commit
1037e0da88
26
test/utils/deriveXAddress.ts
Normal file
26
test/utils/deriveXAddress.ts
Normal 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',
|
||||
)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user