6 lines
176 B
JavaScript
6 lines
176 B
JavaScript
|
import assertString from './util/assertString';
|
||
|
var eth = /^(0x)[0-9a-f]{40}$/i;
|
||
|
export default function isEthereumAddress(str) {
|
||
|
assertString(str);
|
||
|
return eth.test(str);
|
||
|
}
|