import { Arbitrary, FastCheck, Schema } from 'effect'
export const EthAddressSchema = Schema
.Lowercase
.pipe(
Schema.pattern(/^0x[0-9a-f]{40}$/),
)
console.log('Start...')
const sample = FastCheck.sample(Arbitrary.make(EthAddressSchema), {
numRuns: 1,
})
console.log('sample', sample)
import { Arbitrary, FastCheck, Schema } from 'effect'
export const EthAddressSchema = Schema
.Lowercase
.pipe(
Schema.pattern(/^0x[0-9a-f]{40}$/),
)
console.log('Start...')
const sample = FastCheck.sample(Arbitrary.make(EthAddressSchema), {
numRuns: 1,
})
console.log('sample', sample)