pool: watchAddress continue to accept addr string
This commit is contained in:
parent
1bde15b9a2
commit
f01e2fb626
@ -3151,6 +3151,9 @@ class Pool extends EventEmitter {
|
||||
*/
|
||||
|
||||
watchAddress(address) {
|
||||
if (typeof address === 'string')
|
||||
address = Address.fromString(address);
|
||||
|
||||
const hash = Address.getHash(address);
|
||||
this.watch(hash);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user