@etherspot/remote-signer
Version:
Etherspot Permissioned Signer SDK - signs the UserOp with SessionKey and sends it to the Bundler
30 lines (28 loc) • 635 B
JavaScript
import {
isAddress
} from "./chunk-BHLNGJH5.mjs";
// src/sdk/dto/validators/is-address.validator.ts
import { registerDecorator } from "class-validator";
function IsAddress(options = {}) {
return (object, propertyName) => {
registerDecorator({
propertyName,
options: {
message: `${propertyName} must be an address`,
...options
},
name: "isAddress",
target: object.constructor,
constraints: [],
validator: {
validate(value) {
return isAddress(value);
}
}
});
};
}
export {
IsAddress
};
//# sourceMappingURL=chunk-X7NROLUQ.mjs.map