// putInstanceConfig saves general instance configuration configuration, such as
// default wallet address, default storage config, etc.
putInstanceConfig saves general instance configuration configuration, such as
default wallet address, default storage config, etc.
// putInstanceConfig saves general instance configuration configuration such as // default wallet address default storage config etc .
func (s *instanceStore) putInstanceConfig(c InstanceConfig) error {
	buf, err := json.Marshal(c)
	if err != nil {
		return fmt.Errorf("marshaling instance config to datastore: %s", err)
	}
	if err := s.ds.Put(dsInstanceConfig, buf); err != nil {
		return fmt.Errorf("saving to datastore: %s", err)
	}
	return nil
}
func ( s * instanceStore ) putInstanceConfig ( c InstanceConfig ) error { buf , err := json . Marshal ( c ) if err != nil { return fmt . Errorf ( " " , err ) } if err := s . ds . Put ( dsInstanceConfig , buf ) ; err != nil { return fmt . Errorf ( " " , err ) } return nil }
putInstanceConfig saves general instance configuration configuration, such as
default wallet address, default storage config, etc.
putInstanceConfig saves general instance configuration configuration such as default wallet address default storage config etc .