diff --git a/src/currencies.js b/src/currencies.js index 96c9ac0..61d3869 100644 --- a/src/currencies.js +++ b/src/currencies.js @@ -265,7 +265,7 @@ var CURRENCIES = [{ }, { name: 'Cardano', symbol: 'ada', - bech32Hrp: { prod: ['addr'], testnet: ['addr']}, + bech32Hrp: { prod: ['addr'], testnet: ['addr_test']}, validator: ADAValidator }, { name: 'Monero', diff --git a/test/wallet_address_validator.js b/test/wallet_address_validator.js index 0a19d0a..b7c9b86 100644 --- a/test/wallet_address_validator.js +++ b/test/wallet_address_validator.js @@ -549,7 +549,8 @@ describe('WAValidator.validate()', function () { valid('4swhHtxKapQbj3TZEipgtp7NQzcRWDYqCxXYoPQWjGyHmhxS1w1TjUEszCQT1sQucGwmPQMYdv1FYs3d51KgoubviPBf', 'cardano'); valid('addr1qxy3w62dupy9pzmpdfzxz4k240w5vawyagl5m9djqquyymrtm3grn7gpnjh7rwh2dy62hk8639lt6kzn32yxq960usnq9pexvt', 'cardano'); - valid('addr1skemppwfevyk0lshu2w8j34707s3t3t58a04xcx5ccevrcmvpmxg2qt4pk0', 'cardano', 'testnet'); + valid('addr_test1vppht3ffmu4rerk4r50h6447stfhkm86ttc64ghza7wx8mg225lw4', 'cardano', 'testnet'); + valid('addr_test1vpymmxpazg6n5jxnntg4yy3zp67hrhfl39lt9x4cnu7ttrsh9ldm4', 'cardano', 'testnet'); }); it('should return true for correct monero addresses', function () {