import Resolver from './base';
class MemoryResolver extends Resolver {
/**
* Turn an object into an Actor class instance or create a new actor
* @param {Object|string} options Actor object or username
* @param {boolean} create True to create a new actor
*/
createActor(options) {
if(process.env.NODE_ENV === 'production' && !options.keypair){
throw new TypeError('You must provide a keypair for new actors when using the in-memory resolver.');
}
return super.createActor(options);
}
}
export default MemoryResolver;