code: func WithSnapshot(value fab.EventSnapshot) options.Opt {
  	return func(p options.Params) {
  		if setter, ok := p.(snapshotSetter); ok {
  			err := setter.SetSnapshot(value)
  			if err != nil {
  				logger.Errorf("Unable to set snapshot: %s", err)
  			}
  		}
  	}
  }
docs: // WithSnapshot sets the given TxStatus registrations.