backend v4 half
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
import assertString from './util/assertString';
|
||||
var eth = /^(0x)[0-9a-f]{40}$/i;
|
||||
export default function isEthereumAddress(str) {
|
||||
assertString(str);
|
||||
return eth.test(str);
|
||||
}
|
||||
Reference in New Issue
Block a user