@kubiklabs/wasmkit
Version:
Wasmkit is a development environment to compile, deploy, test, run cosmwasm contracts on different networks.
11 lines (10 loc) • 601 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.supportProperPrivateKey = void 0;
function supportProperPrivateKey(Assertion) {
Assertion.addProperty('properPrivateKey', function () {
const subject = this._obj;
this.assert(/^0x[0-9-a-fA-F]{64}$/.test(subject), `Expected "${subject}" to be a proper private key`, `Expected "${subject}" not to be a proper private key`, 'proper private key (eg.: 0x123456789012345678901234567890123456789012345678901234567890ffff)', subject);
});
}
exports.supportProperPrivateKey = supportProperPrivateKey;