extend bech32AddressMatcher in testutils

This commit is contained in:
Milan Steiner 2022-02-08 10:59:44 +01:00
parent 68aafae953
commit e3299d704c

View File

@ -72,7 +72,7 @@ export const tendermintIdMatcher = /^[0-9A-F]{64}$/;
export const base64Matcher =
/^(?:[a-zA-Z0-9+/]{4})*(?:|(?:[a-zA-Z0-9+/]{3}=)|(?:[a-zA-Z0-9+/]{2}==)|(?:[a-zA-Z0-9+/]{1}===))$/;
// https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki#bech32
export const bech32AddressMatcher = /^[\x21-\x7e]{1,83}1[02-9ac-hj-np-z]{58}$/;
export const bech32AddressMatcher = /^[\x21-\x7e]{1,83}1[02-9ac-hj-np-z]{38,58}$/;
export const alice = {
mnemonic: "enlist hip relief stomach skate base shallow young switch frequent cry park",